Skip to content

Commit

Permalink
Update sync-neovim.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
free-150 authored Nov 15, 2024
1 parent 8bf65ba commit 9196bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync-neovim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Check if tag already exists in GitHub
id: check_tag
run: |
tag_exists=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/tags" | jq -r '.[].name' | grep -w "${{ env.releases_tag }}")
tag_exists=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/tags" | jq -r '.[].name' | grep -w "${{ env.releases_tag }}" || true)
if [ -n "$tag_exists" ]; then
echo "Tag ${{ env.releases_tag }} already exists. Skipping release creation."
echo "skip_release=true" >> $GITHUB_ENV
Expand Down

0 comments on commit 9196bbc

Please sign in to comment.