Skip to content

Commit

Permalink
Made version pushes verify that a release isn't already available
Browse files Browse the repository at this point in the history
  • Loading branch information
OakLoaf committed Oct 17, 2024
1 parent 0524a51 commit 3e0818e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/version-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ jobs:
- name: Set project release type
if: ${{ steps.regex-match.outputs.match == '' }}
run: |
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
if git show-ref --tags --verify --quiet "refs/tags/v${{ env.VERSION }}"; then
echo "RELEASE_TYPE=alpha" >> $GITHUB_ENV
else
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
fi
- name: Set project release type
if: ${{ steps.regex-match.outputs.match != '' }}
Expand Down

0 comments on commit 3e0818e

Please sign in to comment.