Skip to content

Commit

Permalink
Don't fetch beta Rails version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
mec committed Aug 23, 2024
1 parent b9c1846 commit 0f1f10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/rails-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
# Get latest Rails versions for 6.x.x and 7.x.x
- id: compute-outputs
name: Compute outputs
# fetches current Rails versions numbers > 5 and not 'beta'
run: |
rails_versions=$(curl https://rubygems.org/api/v1/versions/rails.json | jq 'group_by(.number[:1])[] | (.[0].number) | select(.[:1]|tonumber > 5)' | jq -s -c)
rails_versions=$(curl https://rubygems.org/api/v1/versions/rails.json | jq '[.[] | select(.number | test("beta") | not)] | group_by(.number[:1])[] | (.[0].number) | select(.[:1]|tonumber > 5)' | jq -s -c)
echo "RAILS_VERSIONS=$rails_versions" >> $GITHUB_OUTPUT
build-rails:
strategy:
Expand Down

0 comments on commit 0f1f10d

Please sign in to comment.