File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments