Skip to content

Commit

Permalink
fail if GITHUB_REF_NAME is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyAv46 committed Nov 16, 2023
1 parent 69e7ab4 commit 87e7e62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:

- name: get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
run: | # People report that sometimes GITHUB_REF_NAME is empty, so we check for that and fail if so.
[[ -n $GITHUB_REF_NAME ]] && echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
- name: Set the version for publishing
uses: ciiiii/toml-editor@1.0.0
Expand Down

0 comments on commit 87e7e62

Please sign in to comment.