Skip to content

Commit 89ed2d7

Browse files
committed
1 parent 676c954 commit 89ed2d7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
ruby-versions:
77
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
8-
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8+
uses: nobu/actions/.github/workflows/ruby_versions.yml@latest
99
with:
1010
engine: cruby-truffleruby
1111
min_version: 2.6
@@ -33,21 +33,14 @@ jobs:
3333
bundler-cache: true
3434
- name: Run test
3535
run: bundle exec rake compile test
36-
- name: Select the latest ruby release
37-
id: latest
38-
run: |
39-
printenv versions | jq -r '[.[] | select(test("^[0-9]"))] | "version="+max' >> $GITHUB_OUTPUT
40-
env:
41-
versions: ${{needs.ruby-versions.outputs.versions}}
42-
shell: sh
4336
- id: build
4437
run: |
4538
git fetch --force --no-tags origin 'refs/tags/v*:refs/tags/v*'
4639
bundle exec rake build
4740
echo "pkg=${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}" >> $GITHUB_OUTPUT
4841
env:
4942
RUNNING_OS: ${{matrix.os}}
50-
if: ${{matrix.ruby == steps.latest.outputs.version}}
43+
if: ${{matrix.ruby == needs.ruby-versions.outputs.latest}}
5144
shell: bash
5245
# Ubuntu 20.04 still has libyaml 0.2.2
5346
- name: Upload package

0 commit comments

Comments
 (0)