Skip to content

Commit

Permalink
Correct ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mingzhangqun committed Jun 22, 2024
1 parent bf84f3a commit a3f7a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
# Todo: avoid confilict
sleep $((RANDOM % 30))
TAG=${{ github.event.inputs.tag_name }}
TAG=${{ steps.tag-name.outputs.tag_name }}
RELEASE_URL="https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG"
RESPONSE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" $RELEASE_URL)
RELEASE_EXISTS=$(echo $RESPONSE | jq -r '.message // empty')
Expand All @@ -173,7 +173,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.tag_name }}
tag_name: ${{ steps.tag-name.outputs.tag_name }}
release_name: ${{ steps.changelog.outputs.changelog_title }}
body_path: ${{ steps.changelog.outputs.changelog_content }}
draft: false
Expand Down

0 comments on commit a3f7a21

Please sign in to comment.