CI: Check if runnable first, before set up directories
This commit is contained in:
parent
d0a8f6baa7
commit
bf082a37a9
Notes:
git
2025-05-20 13:30:32 +00:00
9
.github/workflows/default_gems.yml
vendored
9
.github/workflows/default_gems.yml
vendored
@ -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: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user