From bf082a37a9fb1bfd0826e6315c30d023bc79a8d7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 20 May 2025 22:27:51 +0900 Subject: [PATCH] CI: Check if runnable first, before set up directories --- .github/workflows/default_gems.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/default_gems.yml b/.github/workflows/default_gems.yml index 3399dcbc4f..89a4c7dd3a 100644 --- a/.github/workflows/default_gems.yml +++ b/.github/workflows/default_gems.yml @@ -24,15 +24,16 @@ jobs: with: token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} + - id: gems + run: true + if: ${{ github.ref == 'refs/heads/master' }} + - uses: ./.github/actions/setup/directories with: makeup: true # Skip overwriting MATZBOT_GITHUB_TOKEN checkout: '' # false (ref: https://github.com/actions/runner/issues/2238) - - - id: gems - run: true - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ steps.gems.outcome == 'success' }} - name: Download previous gems list run: |