From 89ed2d78d5e15477ab53649593aea070e91d27a7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 29 Oct 2023 15:50:17 +0900 Subject: [PATCH] Use ruby/actions#43 --- .github/workflows/test.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9e16f9..7a502e5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: ruby-versions: if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }} - uses: ruby/actions/.github/workflows/ruby_versions.yml@master + uses: nobu/actions/.github/workflows/ruby_versions.yml@latest with: engine: cruby-truffleruby min_version: 2.6 @@ -33,13 +33,6 @@ jobs: bundler-cache: true - name: Run test run: bundle exec rake compile test - - name: Select the latest ruby release - id: latest - run: | - printenv versions | jq -r '[.[] | select(test("^[0-9]"))] | "version="+max' >> $GITHUB_OUTPUT - env: - versions: ${{needs.ruby-versions.outputs.versions}} - shell: sh - id: build run: | git fetch --force --no-tags origin 'refs/tags/v*:refs/tags/v*' @@ -47,7 +40,7 @@ jobs: echo "pkg=${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}" >> $GITHUB_OUTPUT env: RUNNING_OS: ${{matrix.os}} - if: ${{matrix.ruby == steps.latest.outputs.version}} + if: ${{matrix.ruby == needs.ruby-versions.outputs.latest}} shell: bash # Ubuntu 20.04 still has libyaml 0.2.2 - name: Upload package