Skip to content

Commit

Permalink
Update auto-tag.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDoge authored Oct 5, 2024
1 parent d9ab722 commit 7cf7bd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/auto-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ jobs:
VERSION=$(node -p "require('./package.json').version")
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: check if tag exists
id: check_tag
run: |
if git rev-parse "refs/tags/${{ env.VERSION }}" >/dev/null 2>&1; then
echo "Tag already exists"
exit 0
fi
- name: create new tag
if: steps.check_tag.outputs.tag_exists != 'true'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit 7cf7bd4

Please sign in to comment.