Skip to content

Commit

Permalink
Fix prerelease status check
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Aug 10, 2023
1 parent 7545b3e commit 71c88ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
- name: Check pre-release status
id: check-version
run: |
[[ "$(poetry version --short)" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] \
&& echo "prerelease=false" >> $GITHUB_OUTPUT \
|| echo prerelease=true >> $GITHUB_OUTPUT
if [[ "$(poetry version --short)" =~ "^[0-9]+\.[0-9]+\.[0-9]+$" ]]
then
echo prerelease=true >> $GITHUB_OUTPUT
else
echo prerelease=false >> $GITHUB_OUTPUT
fi
# Get content of the changelog for the latest release, so that we can use
# it as the body for a GitHub tag
Expand Down

0 comments on commit 71c88ee

Please sign in to comment.