Skip to content

Commit 5c94971

Browse files
authored
Add a dry-run option to run in dry-run mode
1 parent 815e5de commit 5c94971

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
on:
22
workflow_dispatch:
3+
inputs:
4+
dry-run:
5+
description: 'If true, run with --dry-run'
6+
required: false
7+
default: false
8+
type: boolean
39

410
jobs:
511
main:
@@ -15,3 +21,4 @@ jobs:
1521
- uses: katyo/publish-crates@v2
1622
with:
1723
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
24+
dry-run: ${{ inputs.dry-run }}

0 commit comments

Comments
 (0)