CI: Check if runnable first, before set up directories

This commit is contained in:
Nobuyoshi Nakada 2025-05-20 22:27:51 +09:00
parent d0a8f6baa7
commit bf082a37a9
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-05-20 13:30:32 +00:00

View File

@ -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: |