mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
74e812fa2b
commit
6518dda504
8
.github/workflows/mikrotik_patch_7.yml
vendored
8
.github/workflows/mikrotik_patch_7.yml
vendored
@ -23,9 +23,9 @@ on:
|
|||||||
- stable
|
- stable
|
||||||
- testing
|
- testing
|
||||||
version:
|
version:
|
||||||
description: 'Version (latest, 7.17, 7.17.1, 7.17.2,...)'
|
description: "Version ('', 7.17, 7.17.1, 7.17.2,...)"
|
||||||
required: false
|
required: false
|
||||||
default: 'latest'
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -82,8 +82,8 @@ jobs:
|
|||||||
id: get_latest
|
id: get_latest
|
||||||
run: |
|
run: |
|
||||||
echo $(uname -a)
|
echo $(uname -a)
|
||||||
LATEST_VERSION=${{ github.event.inputs.version || "latest" }}
|
LATEST_VERSION=${{ github.event.inputs.version }}
|
||||||
if [$LATEST_VERSION == "latest"];then
|
if [$LATEST_VERSION == ""];then
|
||||||
LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1)
|
||||||
fi
|
fi
|
||||||
echo Latest Version:$LATEST_VERSION
|
echo Latest Version:$LATEST_VERSION
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user