Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pandrabox committed Sep 1, 2024
1 parent aca8200 commit 0f61653
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,32 @@ jobs:
package-path: ${{ env.unityPackage }}
include-files: metaList

# Make a release tag of the version from the package.json file
- name: Create Tag
id: tag_version
uses: rickstaa/action-create-tag@88dbf7ff6fe2405f8e8f6c6fdfd78829bc631f83

# Tag_exists_check
- name: Tag_exists_check
uses: rickstaa/action-contains-tag@v1
with:
reference: "main"
tag: "${{ env.version }}"
tag_exists_error: false


# If Tag exists quit
- name: Check if tag exists
id: check_tag_exists
run: |
if [ "${{ steps.tag_version.outputs.tag_exists }}" == "true" ]; then
if [ "${{ steps.Tag_exists_check.outputs.retval }}" == "true" ]; then
echo "Tag already exists. Exiting workflow."
exit 1
fi
# Make a release tag of the version from the package.json file
- name: Create Tag
id: tag_version
uses: rickstaa/action-create-tag@88dbf7ff6fe2405f8e8f6c6fdfd78829bc631f83
with:
tag: "${{ env.version }}"



# Publish the Release to GitHub
- name: Make Release
Expand Down

0 comments on commit 0f61653

Please sign in to comment.