Skip to content

Commit

Permalink
fix: ci build branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Feb 27, 2024
1 parent f72c954 commit 71e74eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.PAT }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
release_id=$(curl -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/${{ github.repository }}/releases/tags/${BRANCH_NAME} \
| jq '.id')
upload_url=$(curl -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/${{ github.repository }}/releases/${release_id} \
| jq -r .upload_url)
echo "UPLOAD_URL=${upload_url}" >> $GITHUB_OUTPUT
https://api.github.com/repos/${{ github.repository }}/releases/tags/${BRANCH_NAME} \
| jq '.upload_url')
echo ${upload_url}
echo "{UPLOAD_URL}={upload_url}" >> $GITHUB_OUTPUT
- name: Upload Asset
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
Expand Down

0 comments on commit 71e74eb

Please sign in to comment.