Skip to content

Commit c6f5c2c

Browse files
Use repo Ruby and env vars in publish-new-ruby-versions workflow
Agent-Logs-Url: https://github.com/rails/devcontainer/sessions/ef2fb079-610d-4b64-b61b-851dd2c2d34f Co-authored-by: rafaelfranca <47848+rafaelfranca@users.noreply.github.com>
1 parent c06d32e commit c6f5c2c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/publish-new-ruby-versions.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ jobs:
2323
- name: Checkout (GitHub)
2424
uses: actions/checkout@v6
2525

26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: .ruby-version
30+
2631
- id: normalize
32+
env:
33+
RUBY_VERSIONS: ${{ github.event.inputs.ruby_versions }}
34+
IMAGE_VERSIONS: ${{ github.event.inputs.image_versions }}
35+
REPOSITORY: ${{ github.repository }}
2736
run: |
2837
ruby bin/normalize-publish-inputs \
29-
--ruby-versions '${{ github.event.inputs.ruby_versions }}' \
30-
--image-versions '${{ github.event.inputs.image_versions }}' \
31-
--repository '${{ github.repository }}'
38+
--ruby-versions "$RUBY_VERSIONS" \
39+
--image-versions "$IMAGE_VERSIONS" \
40+
--repository "$REPOSITORY"
3241
3342
publish:
3443
name: Publish Images

0 commit comments

Comments
 (0)