From 0f1f10dc11ecd2965f75b6eec24225286e16f222 Mon Sep 17 00:00:00 2001 From: meyric Date: Fri, 23 Aug 2024 09:31:47 +0100 Subject: [PATCH] Don't fetch beta Rails version numbers --- .github/workflows/rails-integration-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: