Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8ebb7fa

Browse files
committed
Simplify condition for reuse
Rather than repeating the whole logic for skip_slow, let's rely on the matrix being set.
1 parent c6feac2 commit 8ebb7fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ jobs:
262262
echo "platform=$platform" >> $GITHUB_OUTPUT
263263
- name: Download binaries from previous release
264264
run: gh release download "${{ needs.prepare.outputs.previous_release }}" --pattern "ruby-${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz"
265-
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip_slow == 'true' }}
265+
if: matrix.name != 'noop'
266266
- name: Re-upload Binaries
267267
run: gh release upload "${{ needs.release.outputs.tag }}" "ruby-${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz"
268-
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.skip_slow == 'true' }}
268+
if: matrix.name != 'noop'
269269
- name: (Empty step for when reuse is not applied)
270270
run: echo "Not reusing binaries. This step is a no-op." # We can't skip the whole job as publish depends on it, but we skip the uploading
271-
if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.skip_slow == 'true') }}
271+
if: matrix.name == 'noop'
272272

273273
publish:
274274
name: Publish Release

0 commit comments

Comments
 (0)