Skip to content

Commit

Permalink
Fix PEP440 violating package tag (#108)
Browse files Browse the repository at this point in the history
* Fixed outdated examples

* Fix pep 440 violating package tag
  • Loading branch information
chipkent authored Feb 15, 2023
1 parent 679a10a commit f66518e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ jobs:
TAG_NAME=${{ github.event.release.tag_name }}
if [ -z "${TAG_NAME}" ]
then
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "::set-output name=version::0.0.0.dev${PR_NUMBER}"
if [ "$GITHUB_REF" = "refs/heads/main" ]
then
echo "::set-output name=version::0.0.0.rc"
else
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "::set-output name=version::0.0.0.dev${PR_NUMBER}"
fi
else
echo "::set-output name=version::${{ github.event.release.tag_name }}"
fi
Expand Down

0 comments on commit f66518e

Please sign in to comment.