File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4444 # Exit with success if both detected and input versions are empty
4545 if [ -z "${DETECTED_VERSION:-}" ] && [ -z "${INPUT_VERSION:-}" ]; then
4646 echo "No version detected or input. Will publish to SHA tag instead."
47- echo 'VERSION="" ' >> $GITHUB_ENV
47+ echo 'VERSION=' >> $GITHUB_ENV
4848 exit 0
4949 fi
5050 # Remove the 'v' prefix if it exists
@@ -78,11 +78,11 @@ jobs:
7878 fetch-depth : 0
7979
8080 - uses : hynek/build-and-inspect-python-package@v2
81- name : Build package with version ref '${{ env.VERSION }}'
81+ name : Build package with version ref '${{ env.VERSION || '0.0.0dev0' }}'
8282 env :
8383 # Pass in the evaluated version from the previous step
8484 # More info: https://github.com/mtkennerly/poetry-dynamic-versioning#user-content-environment-variables
85- POETRY_DYNAMIC_VERSIONING_BYPASS : ${{ env.VERSION }}
85+ POETRY_DYNAMIC_VERSIONING_BYPASS : ${{ env.VERSION || '0.0.0dev0' }}
8686
8787 - uses : actions/upload-artifact@v4
8888 with :
You can’t perform that action at this time.
0 commit comments