Skip to content

Commit

Permalink
Update prerelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
greendoescode authored Jul 30, 2023
1 parent f9e8087 commit 7e8c36c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,22 @@ jobs:

- name: Set Artifact Path
run: echo "ARTIFACT_PATH=release-${{ steps.get-version.outputs.version }}.zip" >> $GITHUB_ENV

- name: Check if tag exists
id: check_tag
run: |
set -e
if git rev-parse "v${{ steps.get-version.outputs.version }}" >/dev/null 2>&1; then
echo "Tag v${{ steps.get-version.outputs.version }}" exists.
echo "TAG_EXISTS=true" >> $GITHUB_ENV
else
echo "Tag v${{ steps.get-version.outputs.version }}" does not exist.
echo "TAG_EXISTS=false" >> $GITHUB_ENV
fi
shell: bash

- name: Create GitHub Release
if: env.TAG_EXISTS != 'true'
id: create_github_release
uses: actions/create-release@v1
with:
Expand Down

0 comments on commit 7e8c36c

Please sign in to comment.