mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
49f4ad0a59
commit
810909828a
1 changed files with 11 additions and 3 deletions
14
.github/workflows/mikrotik_patch_7.yml
vendored
14
.github/workflows/mikrotik_patch_7.yml
vendored
|
|
@ -22,6 +22,11 @@ on:
|
||||||
options:
|
options:
|
||||||
- stable
|
- stable
|
||||||
- testing
|
- testing
|
||||||
|
version:
|
||||||
|
description: 'Version (latest, 7.17, 7.17.1, 7.17.2,...)'
|
||||||
|
required: false
|
||||||
|
default: 'latest'
|
||||||
|
type: string
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
|
@ -58,8 +63,8 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ${{ fromJSON(format('["{0}"]', join('","', split(github.event.inputs.arch, ','))) }}
|
arch: ${{ fromJSON(format('["{0}"]', github.event.inputs.arch || 'x86')) }}
|
||||||
channel: ${{ fromJSON(format('["{0}"]', join('","', split(github.event.inputs.channel, ','))) }}
|
channel: ${{ fromJSON(format('["{0}"]', github.event.inputs.channel || 'stable')) }}
|
||||||
env:
|
env:
|
||||||
TZ: 'Asia/Shanghai'
|
TZ: 'Asia/Shanghai'
|
||||||
LATEST_VERSION: ""
|
LATEST_VERSION: ""
|
||||||
|
|
@ -77,7 +82,10 @@ jobs:
|
||||||
id: get_latest
|
id: get_latest
|
||||||
run: |
|
run: |
|
||||||
echo $(uname -a)
|
echo $(uname -a)
|
||||||
LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
LATEST_VERSION=${{ github.event.inputs.version || "latest" }}
|
||||||
|
if [$LATEST_VERSION == "latest"];then
|
||||||
|
LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||||
|
fi
|
||||||
echo Latest Version:$LATEST_VERSION
|
echo Latest Version:$LATEST_VERSION
|
||||||
if [ "${{ github.event_name }}" == "schedule" ]; then
|
if [ "${{ github.event_name }}" == "schedule" ]; then
|
||||||
_LATEST_VERSION=$(wget -nv -O - https://${{ env.CUSTOM_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
_LATEST_VERSION=$(wget -nv -O - https://${{ env.CUSTOM_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue