Skip to content

Commit 321f5cd

Browse files
authored
Merge pull request #1499 from EliahKagan/dry-run
Allow keeping releases drafts via repo-level GHA variable
2 parents 9b72c61 + 00634d0 commit 321f5cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ jobs:
334334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
335335

336336
- name: Publish the release
337+
if: vars.DRY_RUN_RELEASE != 'true' && vars.DRY_RUN_RELEASE != 'yes' && vars.DRY_RUN_RELEASE != '1'
337338
run: gh release --repo="$REPOSITORY" edit "$VERSION" --draft=false
338339
env:
339340
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)