Skip to content

Commit bdd6d76

Browse files
committed
cleanup
1 parent b93a40b commit bdd6d76

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/post-publish/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ runs:
6161
VERSION: "${{ inputs.version }}"
6262
run: |
6363
# Handle version already bumped
64-
if [ -z "${VERSION}" ]; then
64+
if [ -z "$VERSION" ]; then
6565
# Extract the version from the sdist name, which must be of the from
6666
# {name}-{version}.tar.gz according to PEP 625.
6767
VERSION=$(ls dist/*.tar.gz | rev | cut -d'-' -f 1 | rev | sed 's/.tar.gz//g')
6868
echo "VERSION=$VERSION" >> $GITHUB_ENV
6969
else
70-
echo "VERSION=${VERSION}" >> $GITHUB_ENV
70+
echo "VERSION={VERSION" >> $GITHUB_ENV
7171
fi
7272
- name: Create detached signature for dist files
7373
uses: mongodb-labs/drivers-github-tools/gpg-sign@v2

python/pre-publish/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ runs:
3838
pip install build
3939
- name: Handle inputs
4040
shell: bash
41+
env:
42+
VERSION: "${{ inputs.version }}"
4143
run: |
4244
set -eux
4345
# Handle DRY_RUN
@@ -48,15 +50,13 @@ runs:
4850
fi
4951
echo "PUSH_CHANGES=$PUSH_CHANGES" >> $GITHUB_ENV
5052
# Handle version already bumped
51-
if [ -z "${{ inputs.version }}" ]; then
52-
python -m build --sdist .
53-
# Extract the version from the sdist name, which must be of the from
53+
if [ -z "$VERSION" ]; then
54+
# Extract the version from the sdist name, which must be of the from
5455
# {name}-{version}.tar.gz according to PEP 625.
5556
VERSION=$(ls dist/*.tar.gz | rev | cut -d'-' -f 1 | rev | sed 's/.tar.gz//g')
5657
echo "VERSION=$VERSION" >> $GITHUB_ENV
57-
rm -rf dist
5858
else
59-
echo "VERSION=${{ inputs.version}}" >> $GITHUB_ENV
59+
echo "VERSION=$VERSION" >> $GITHUB_ENV
6060
fi
6161
- name: Set version
6262
uses: mongodb-labs/drivers-github-tools/bump-version@v2

0 commit comments

Comments
 (0)