Skip to content

Commit cc45eb3

Browse files
authored
CI: Follow-up PR for SDM workflow (#85)
1 parent e52bde4 commit cc45eb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish_sdm_connector.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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:

0 commit comments

Comments
 (0)