Skip to content

Commit 1928d09

Browse files
phlogistonjohnanoopcs9
authored andcommitted
workflows: filter out fedora beta versions
When the CI jobs fetch the version information from fedora to determine what are the current versions, do not include beta versions. Fixes: #174 Signed-off-by: John Mulligan <[email protected]>
1 parent 52a3e01 commit 1928d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- id: fedora-versions
1717
run: |
1818
curl -s -L https://fedoraproject.org/releases.json -o fedora-releases.json
19-
LATEST=$(jq -r '[.[]|select(.variant == "Container" and .subvariant == "Container_Base" and .arch == "x86_64")][0]|.version' fedora-releases.json)
19+
LATEST=$(jq -r '[.[]|select(.version | contains("Beta") | not)|select(.variant == "Container" and .subvariant == "Container_Base" and .arch == "x86_64")][0]|.version' fedora-releases.json)
2020
PREVIOUS=$((LATEST - 1))
2121
2222
echo "latest=$LATEST" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)