Skip to content

Commit

Permalink
Update OTP version retrieval (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Sep 17, 2024
1 parent fad6d13 commit 0d0e023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
all_versions=$(gh api graphql -f query='query { repository(owner: "erlang", name: "otp") { releases(last: 100, orderBy: {field: CREATED_AT, direction: ASC}) { nodes { tagName } } } }' --jq '.data.repository.releases.nodes[].tagName | select(. | contains("rc") | not) | .[4:8]' | sort -u -n)
all_versions=$(gh api graphql -f query='query { repository(owner: "erlang", name: "otp") { releases(last: 100, orderBy: {field: CREATED_AT, direction: ASC}) { nodes { tagName } } } }' --jq '.data.repository.releases.nodes[].tagName | select(. | contains("rc") | not) | .[4:8] | select(test("^[0-9]+\\.[0-9]+$"))' | sort -u -n)
latest_versions=$(./bin/get_latest_majors_for_ci_matrix.py <<< "$all_versions")
printf "::set-output name=versions::%s" "$latest_versions"
Expand Down

0 comments on commit 0d0e023

Please sign in to comment.