Skip to content

Commit 2275666

Browse files
committed
gha - Only prevent re-run of release creation when we do want t o publish a release
Otherwise, this is not needed, as we are probably just testing the workflow.
1 parent b3a7da1 commit 2275666

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/create-release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
fetch-depth: 0
3838

3939
- name: Prevent Re-run
40+
if: ${{ inputs.publish-release }}
4041
uses: ./.github/workflows/actions/prevent-rerun
4142

4243
# we _also_ need npm, specifically for webui/preview
@@ -104,6 +105,7 @@ jobs:
104105
ref: ${{ needs.configure.outputs.version_commit }}
105106

106107
- name: Prevent Re-run
108+
if: ${{ inputs.publish-release }}
107109
uses: ./.github/workflows/actions/prevent-rerun
108110

109111
- name: Make Tarball
@@ -125,6 +127,7 @@ jobs:
125127
ref: ${{ needs.configure.outputs.version_commit }}
126128

127129
- name: Prevent Re-run
130+
if: ${{ inputs.publish-release }}
128131
uses: ./.github/workflows/actions/prevent-rerun
129132

130133
- name: Configure
@@ -161,6 +164,7 @@ jobs:
161164
ref: ${{ needs.configure.outputs.version_commit }}
162165

163166
- name: Prevent Re-run
167+
if: ${{ inputs.publish-release }}
164168
uses: ./.github/workflows/actions/prevent-rerun
165169

166170
- name: Configure
@@ -197,6 +201,7 @@ jobs:
197201
ref: ${{ needs.configure.outputs.version_commit }}
198202

199203
- name: Prevent Re-run
204+
if: ${{ inputs.publish-release }}
200205
uses: ./.github/workflows/actions/prevent-rerun
201206

202207
- name: Configure
@@ -244,6 +249,7 @@ jobs:
244249
ref: ${{ needs.configure.outputs.version_commit }}
245250

246251
- name: Prevent Re-run
252+
if: ${{ inputs.publish-release }}
247253
uses: ./.github/workflows/actions/prevent-rerun
248254

249255
- name: Configure
@@ -277,6 +283,7 @@ jobs:
277283
ref: ${{ needs.configure.outputs.version_commit }}
278284

279285
- name: Prevent Re-run
286+
if: ${{ inputs.publish-release }}
280287
uses: ./.github/workflows/actions/prevent-rerun
281288

282289
- name: Configure
@@ -312,6 +319,7 @@ jobs:
312319
.github
313320
314321
- name: Prevent Re-run
322+
if: ${{ inputs.publish-release }}
315323
uses: ./.github/workflows/actions/prevent-rerun
316324

317325
- uses: actions/download-artifact@v4
@@ -349,6 +357,7 @@ jobs:
349357
ref: ${{ needs.configure.outputs.version_commit }}
350358

351359
- name: Prevent Re-run
360+
if: ${{ inputs.publish-release }}
352361
uses: ./.github/workflows/actions/prevent-rerun
353362

354363
- name: Configure Rust Tools
@@ -433,6 +442,7 @@ jobs:
433442
.github
434443
435444
- name: Prevent Re-run
445+
if: ${{ inputs.publish-release }}
436446
uses: ./.github/workflows/actions/prevent-rerun
437447

438448
- uses: actions/download-artifact@v4
@@ -473,6 +483,7 @@ jobs:
473483
ref: ${{ needs.configure.outputs.version_commit }}
474484

475485
- name: Prevent Re-run
486+
if: ${{ inputs.publish-release }}
476487
uses: ./.github/workflows/actions/prevent-rerun
477488

478489
- name: Configure
@@ -543,6 +554,7 @@ jobs:
543554
.github
544555
545556
- name: Prevent Re-run
557+
if: ${{ inputs.publish-release }}
546558
uses: ./.github/workflows/actions/prevent-rerun
547559

548560
- uses: actions/download-artifact@v4
@@ -598,7 +610,8 @@ jobs:
598610
.github
599611
600612
- name: Prevent Re-run
601-
uses: ./quarto-cli/.github/workflows/actions/prevent-rerun
613+
if: ${{ inputs.publish-release }}
614+
uses: ./.github/workflows/actions/prevent-rerun
602615

603616
- name: Download Artifacts
604617
uses: actions/download-artifact@v4
@@ -703,6 +716,7 @@ jobs:
703716
- uses: actions/checkout@v4
704717

705718
- name: Prevent Re-run
719+
if: ${{ inputs.publish-release }}
706720
uses: ./.github/workflows/actions/prevent-rerun
707721

708722
- name: Revert commit of version.txt
@@ -733,6 +747,7 @@ jobs:
733747
.github
734748
735749
- name: Prevent Re-run
750+
if: ${{ inputs.publish-release }}
736751
uses: ./.github/workflows/actions/prevent-rerun
737752

738753
- name: Download Artifacts

0 commit comments

Comments
 (0)