Skip to content

Commit bf082a3

Browse files
committed
CI: Check if runnable first, before set up directories
1 parent d0a8f6b commit bf082a3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/default_gems.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ jobs:
2424
with:
2525
token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2626

27+
- id: gems
28+
run: true
29+
if: ${{ github.ref == 'refs/heads/master' }}
30+
2731
- uses: ./.github/actions/setup/directories
2832
with:
2933
makeup: true
3034
# Skip overwriting MATZBOT_GITHUB_TOKEN
3135
checkout: '' # false (ref: https://github.com/actions/runner/issues/2238)
32-
33-
- id: gems
34-
run: true
35-
if: ${{ github.ref == 'refs/heads/master' }}
36+
if: ${{ steps.gems.outcome == 'success' }}
3637

3738
- name: Download previous gems list
3839
run: |

0 commit comments

Comments
 (0)