Skip to content

Commit b93a40b

Browse files
committed
address code scan
1 parent 61ff405 commit b93a40b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/post-publish/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,17 @@ runs:
5757
path: dist/
5858
- name: Ensure we have the package version
5959
shell: bash
60+
env:
61+
VERSION: "${{ inputs.version }}"
6062
run: |
6163
# Handle version already bumped
62-
if [ -z "${{ inputs.version }}" ]; then
64+
if [ -z "${VERSION}" ]; then
6365
# Extract the version from the sdist name, which must be of the from
6466
# {name}-{version}.tar.gz according to PEP 625.
6567
VERSION=$(ls dist/*.tar.gz | rev | cut -d'-' -f 1 | rev | sed 's/.tar.gz//g')
6668
echo "VERSION=$VERSION" >> $GITHUB_ENV
6769
else
68-
echo "VERSION=${{ inputs.version}}" >> $GITHUB_ENV
70+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
6971
fi
7072
- name: Create detached signature for dist files
7173
uses: mongodb-labs/drivers-github-tools/gpg-sign@v2

0 commit comments

Comments
 (0)