Skip to content

Commit c5be98c

Browse files
committed
Add dry_run option to create-release workflow
1 parent 5bbb974 commit c5be98c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
- beta
2222
- rc
2323

24+
dry_run:
25+
type: boolean
26+
description: Dry Run?
27+
default: false
28+
2429
jobs:
2530
release-it:
2631
runs-on: ubuntu-latest
@@ -67,6 +72,10 @@ jobs:
6772
params+=(--no-plugins.@release-it/keep-a-changelog.strictLatest)
6873
fi
6974
75+
if [[ ${{ github.event.inputs.dry_run }} == "true" ]]; then
76+
params+=(--dry-run)
77+
fi
78+
7079
params+=(--ci)
7180
7281
yarn release-it "${params[@]}"

0 commit comments

Comments
 (0)