mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-04 06:25:47 +00:00
modified: .github/workflows/main.yml
This commit is contained in:
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@@ -39,8 +39,7 @@ jobs:
|
||||
|
||||
CANDIDATES=$(echo "$OFFICIAL_UPGRADE" | jq -c --argjson patch "$PATCH_UPGRADE" '
|
||||
($patch.upgradePaths // {}) as $paths |
|
||||
.upgradePaths // {} |
|
||||
to_entries |
|
||||
.upgradePaths // {} | to_entries |
|
||||
map(
|
||||
.value.version as $official_version |
|
||||
($paths[.key] // null) as $patch_value |
|
||||
@@ -60,18 +59,21 @@ jobs:
|
||||
')
|
||||
else
|
||||
CANDIDATES=$(echo "$OFFICIAL_UPGRADE" | jq -c '
|
||||
.upgradePaths // {} | to_entries |
|
||||
map(
|
||||
.upgradePaths // {} | to_entries |
|
||||
map(
|
||||
select(
|
||||
( (.key | test("^NEWEST(6|a7)") ) and (.key | test("\\.(stable|development|long-term)$"))
|
||||
) |
|
||||
(.key | test("^NEWEST(6|a7)"))
|
||||
and
|
||||
(.key | test("\\.(stable|development|long-term)$"))
|
||||
)
|
||||
|
|
||||
{
|
||||
majorVersion: (.value.version | split(".")[0]),
|
||||
channel: (.key | split(".")[1]),
|
||||
version: .value.version
|
||||
}
|
||||
)
|
||||
')
|
||||
')
|
||||
fi
|
||||
|
||||
VERSION_FILTER="${{ github.event.inputs.version || 'all' }}"
|
||||
|
||||
Reference in New Issue
Block a user