Skip to content

Commit 0020ed3

Browse files
authored
ci: fix dry run for rust publish (#55)
1 parent 0499ef3 commit 0020ed3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/publish-rust-crate.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,7 @@ jobs:
123123
LEVEL=${{ inputs.level }}
124124
fi
125125
126-
if [ "${{ inputs.dry_run }}" == "true" ]; then
127-
OPTIONS="--dry-run"
128-
else
129-
OPTIONS=""
130-
fi
131-
132-
./scripts/publish-rust.sh ${{ inputs.package_path }} $LEVEL $OPTIONS
126+
DRY_RUN="${{ inputs.dry_run }}" ./scripts/publish-rust.sh ${{ inputs.package_path }} $LEVEL $OPTIONS
133127
134128
- name: Create GitHub release
135129
if: inputs.create_release == 'true' && inputs.dry_run != 'true'

0 commit comments

Comments
 (0)