Skip to content

Commit

Permalink
fix: Parse payload (#87)
Browse files Browse the repository at this point in the history
* fix: Parse payload

* parse payload

Signed-off-by: oliver könig <[email protected]>

---------

Signed-off-by: oliver könig <[email protected]>
  • Loading branch information
ko3n1g authored Jan 3, 2025
1 parent 712f212 commit 2c808e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/_release_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,19 @@ jobs:
"generate_release_notes": false
}'
)
echo -E "$PAYLOAD" > payload.txt
CMD=$(echo 'curl -L \
CMD=$(echo -E 'curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer '"$GH_TOKEN"'" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$REPOSITORY/releases \
-d '"'$PAYLOAD'"'
https://api.github.com/repos/'"$REPOSITORY"'/releases \
-d @payload.txt
')
if [[ "$IS_DRY_RUN" == "true" ]]; then
echo "$CMD"
echo -E "$CMD"
else
eval "$CMD"
fi
Expand Down

0 comments on commit 2c808e8

Please sign in to comment.