Skip to content

Commit

Permalink
Merge pull request #30 from KnpLabs/fix/release-assets-upload
Browse files Browse the repository at this point in the history
fix automatic assets upload when a release is published
  • Loading branch information
nm2107 authored Mar 9, 2022
2 parents b73284e + ae97627 commit fc85f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/upload_release_asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ printerr() {

get_assets_url() {
url="$(curl -s \
-u "knpEdgar:${GH_ACCESS_TOKEN}" \
-u "knpEdgarSsc:${GH_ACCESS_TOKEN}" \
"https://api.github.com/repos/KnpLabs/should-skip-ci/releases/tags/${GIT_TAG}" \
| jq -r .assets_url)"

Expand All @@ -22,7 +22,7 @@ upload_bin() {
local assets_url="${1}"

curl -s \
-u "knpEdgar:${GH_ACCESS_TOKEN}" \
-u "knpEdgarSsc:${GH_ACCESS_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${SSC_BIN}" \
"${assets_url}?name=ssc-x86_64"
Expand Down

0 comments on commit fc85f26

Please sign in to comment.