Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Apr 19, 2024
1 parent ed19b09 commit 604c72c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:
- name: Check if release exists
id: check_release
run: |
RELEASE_ID=$(curl --silent --show-error --header "Authorization: token ${{ secrets.PAT }}" "https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.ref }}" | jq '.id')
TAG_NAME=${{ github.ref }} # refs/tags/v0.1.0
TAG_NAME=${TAG_NAME#refs/tags/} # v0.1.0
RELEASE_ID=$(curl --silent --show-error --header "Authorization: token ${{ secrets.PAT }}" "https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG_NAME" | jq '.id')
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
- name: Create Release
Expand Down

0 comments on commit 604c72c

Please sign in to comment.