Skip to content

Commit

Permalink
Update command to update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Jun 15, 2024
1 parent 7336b17 commit c211c1c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ update_release() {
gh release create "$release" "${assets[@]}" -t "$release" -F "$release_notes_file"
else
gh release upload "$release" "${assets[@]}" --clobber
endpoint="$(gh api repos/"$GITHUB_REPOSITORY"/releases/tags/"$release" -H Accept:application/vnd.github.v3+json | jq -r '.url')"
gh api "$endpoint" -H Accept:application/vnd.github.v3+json -H Content-Type:application/json -X PATCH -f body="$(cat "$release_notes_file")" --silent
gh release edit "$release" --notes-file "$release_notes_file"
fi
echo "${assets[@]}" | xargs -n 1 -P 2 cds
}
Expand Down

0 comments on commit c211c1c

Please sign in to comment.