fix: use GITHUB_REF_NAME instead of GITHUB_REF
This commit is contained in:
committed by
GitHub
parent
7ac537580f
commit
338e243c3f
@@ -133,7 +133,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
release="${GITHUB_REF#refs/tags/}"
|
release="${GITHUB_REF_NAME}"
|
||||||
upload_url=$(curl -s -u "$GITHUB_TOKEN" https://api.github.com/repos/BBVA/kapow/releases \
|
upload_url=$(curl -s -u "$GITHUB_TOKEN" https://api.github.com/repos/BBVA/kapow/releases \
|
||||||
| jq -r '.[] | if .tag_name == "'$release'" then . else empty end | .upload_url' \
|
| jq -r '.[] | if .tag_name == "'$release'" then . else empty end | .upload_url' \
|
||||||
| tail -n1)
|
| tail -n1)
|
||||||
|
|||||||
Reference in New Issue
Block a user