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 44
44
# Exit with success if both detected and input versions are empty
45
45
if [ -z "${DETECTED_VERSION:-}" ] && [ -z "${INPUT_VERSION:-}" ]; then
46
46
echo "No version detected or input. Will publish to SHA tag instead."
47
- echo 'VERSION="" ' >> $GITHUB_ENV
47
+ echo 'VERSION=' >> $GITHUB_ENV
48
48
exit 0
49
49
fi
50
50
# Remove the 'v' prefix if it exists
@@ -78,11 +78,11 @@ jobs:
78
78
fetch-depth : 0
79
79
80
80
- 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' }}'
82
82
env :
83
83
# Pass in the evaluated version from the previous step
84
84
# 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' }}
86
86
87
87
- uses : actions/upload-artifact@v4
88
88
with :
You can’t perform that action at this time.
0 commit comments