Skip to content

Commit 32b7efe

Browse files
committed
reference ruby v1 branch in gh action
1 parent adadd7f commit 32b7efe

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ jobs:
2121
- uses: actions/checkout@v4
2222
with:
2323
persist-credentials: false
24+
25+
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces.
26+
# specify that we want the v1 branch.
2427
- name: Set up Ruby
25-
uses: ruby/setup-ruby@v1
28+
uses: ruby/setup-ruby@refs/heads/v1
2629
with:
2730
ruby-version: ruby
2831

29-
- uses: rubygems/release-gem@v1
32+
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces.
33+
# specify that we want the v1 branch.
34+
- uses: rubygems/release-gem@refs/heads/v1

.github/workflows/rubocop.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
persist-credentials: false
16-
- uses: ruby/setup-ruby@v1
16+
17+
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces.
18+
# specify that we want the v1 branch.
19+
- uses: ruby/setup-ruby@refs/heads/v1
1720
with:
1821
ruby-version: 3.4
22+
1923
- run: bundle install
2024
- run: bundle exec rake -t rubocop

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ jobs:
3030
with:
3131
submodules: true
3232
persist-credentials: false
33-
- uses: ruby/setup-ruby@v1
33+
34+
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces.
35+
# specify that we want the v1 branch.
36+
- uses: ruby/setup-ruby@refs/heads/v1
3437
with:
3538
ruby-version: ${{ matrix.version }}
39+
3640
- run: bundle install
3741
- run: bundle exec rake -t test

0 commit comments

Comments
 (0)