diff --git a/.github/workflows/rails-integration-tests.yml b/.github/workflows/rails-integration-tests.yml index 4ac5960..ac2260c 100644 --- a/.github/workflows/rails-integration-tests.yml +++ b/.github/workflows/rails-integration-tests.yml @@ -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: