File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 20
20
run : |
21
21
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)
22
22
echo "RAILS_VERSIONS=$rails_versions" >> $GITHUB_OUTPUT
23
+ set-ruby-version :
24
+ runs-on : ubuntu-latest
25
+ name : Set Rails versions
26
+ outputs :
27
+ RAILS_VERSIONS : ${{ steps.set-ruby-version.outputs.RUBY_VERSION }}
28
+ steps :
29
+ - id : set-ruby-version
30
+ name : Set Ruby version
31
+ run : |
32
+ echo "RUBY_VERSION=$(cat .ruby-version)" >> $GITHUB_OUTPUT
23
33
build-rails :
24
34
strategy :
25
35
fail-fast : false
28
38
rails : ${{ fromJSON(needs.set-matrix.outputs.RAILS_VERSIONS) }}
29
39
runs-on : ubuntu-latest
30
40
name : Build and cache Docker containers
31
- needs : set-matrix
41
+ needs :
42
+ - set-matrix
43
+ - set-ruby-version
32
44
steps :
33
45
- name : Checkout
34
46
uses : actions/checkout@v4
42
54
build-args : |
43
55
RAILS_VERSION=${{ matrix.rails }}
44
56
MAIL_NOTIFY_BRANCH=${{ github.ref }}
57
+ RUBY_VERSION=${{ needs.set-ruby-version.outputs.RUBY_VERSION }}
45
58
push : false
46
59
tags : mail-notify-integration-rails-${{ matrix.rails }}:latest
47
60
outputs : type=docker, dest=/tmp/rails-${{ matrix.rails }}-image.tar
61
74
runs-on : ubuntu-latest
62
75
needs :
63
76
- set-matrix
77
+ - set-ruby-version
64
78
- build-rails
65
79
steps :
66
80
- name : Download image
85
99
runs-on : ubuntu-latest
86
100
needs :
87
101
- set-matrix
102
+ - set-ruby-version
88
103
- build-rails
89
104
steps :
90
105
- name : Download image
You can’t perform that action at this time.
0 commit comments