modified: .github/workflows/main.yml

modified:   .github/workflows/patch_v6.yml
	modified:   .github/workflows/patch_v7.yml
This commit is contained in:
elseif
2026-09-04 18:16:44 +08:00
parent e124f5a97b
commit 6d68d3767f
3 changed files with 10 additions and 8 deletions

View File

@@ -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

View File

@@ -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 }}

View File

@@ -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 }}