mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-04 14:35:49 +00:00
modified: .github/workflows/main.yml
modified: .github/workflows/patch_v6.yml modified: .github/workflows/patch_v7.yml
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -157,8 +157,8 @@ jobs:
|
||||
]
|
||||
end
|
||||
] |
|
||||
flatten |
|
||||
map(select(.version != null)) |
|
||||
sort_by(.version) |
|
||||
group_by(.version) |
|
||||
map({
|
||||
version: .[0].version,
|
||||
@@ -172,7 +172,7 @@ jobs:
|
||||
echo "$CANDIDATES" | jq .
|
||||
|
||||
if [[ "${{ github.event_name }}" != "workflow_dispatch" ]]; then
|
||||
PATCH_UPGRADE=$(curl -fsSL https://upgrade.mikrotik.ltd/routeros/upgrade.json) || { echo "ERROR: Failed to fetch OFFICIAL_UPGRADE" >&2; exit 1; }
|
||||
PATCH_UPGRADE=$(curl -fsSL https://upgrade.mikrotik.ltd/routeros/upgrade.json) || { echo "ERROR: Failed to fetch PATCH_UPGRADE" >&2; exit 1; }
|
||||
echo "$PATCH_UPGRADE" | jq -e . >/dev/null 2>&1 || { echo "ERROR: PATCH_UPGRADE is not valid JSON" >&2; exit 1; }
|
||||
PATCH_VERSIONS=$(echo "$PATCH_UPGRADE" | jq -c '
|
||||
[.upgradePaths[].version] | unique
|
||||
|
||||
7
.github/workflows/patch_v6.yml
vendored
7
.github/workflows/patch_v6.yml
vendored
@@ -11,12 +11,13 @@ on:
|
||||
archs:
|
||||
required: true
|
||||
type: string
|
||||
buildtime:
|
||||
required: true
|
||||
type: string
|
||||
release:
|
||||
required: true
|
||||
type: boolean
|
||||
buildtime:
|
||||
required: false
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
env:
|
||||
CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }}
|
||||
|
||||
7
.github/workflows/patch_v7.yml
vendored
7
.github/workflows/patch_v7.yml
vendored
@@ -11,12 +11,13 @@ on:
|
||||
archs:
|
||||
required: true
|
||||
type: string
|
||||
buildtime:
|
||||
required: true
|
||||
type: string
|
||||
release:
|
||||
required: true
|
||||
type: boolean
|
||||
buildtime:
|
||||
required: false
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
env:
|
||||
CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user