Skip to content

Commit 92fd049

Browse files
committed
ci(github): add draft flag to pre-release workflow
1 parent fb9a8fc commit 92fd049

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/prerelease_github.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: prerelease_github
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
draft:
7+
description: 'Keep the pre-release as a draft, hidden until published by hand'
8+
type: boolean
9+
default: false
510
# To build every push to develop as well, uncomment:
611
# push:
712
# branches: [ develop ]
@@ -96,6 +101,8 @@ jobs:
96101
token: ${{ secrets.GITHUB_TOKEN }}
97102
tag: ${{ env.PRERELEASE_TAG }}
98103
commit: ${{ github.sha }}
104+
# also applied on update, so a run without it publishes a draft left by an earlier one
105+
draft: ${{ inputs.draft == true }}
99106
prerelease: true
100107
makeLatest: false
101108
allowUpdates: true

0 commit comments

Comments
 (0)