File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,12 +134,7 @@ jobs:
134134 PR_NUMBER='${{ steps.release.outputs.pr && fromJSON(steps.release.outputs.pr).number }}'
135135 CHECKSUM_CONTENT=$(cat checksums.txt)
136136
137- RELEASE_NOTES=$(cat <<EOF
138- This is a release candidate. See release-please PR # $PR_NUMBER for context.
139-
140- $CHECKSUM_CONTENT
141- EOF
142- )
137+ RELEASE_NOTES=$(printf "This is a release candidate. See release-please PR #%s for context.\n\n%s\n" "$PR_NUMBER" "$CHECKSUM_CONTENT")
143138
144139 GH_TOKEN='${{ github.token }}' gh release \
145140 create $RELEASE_NAME \
173168 # Append checksums to existing release notes
174169 EXISTING_NOTES=$(GH_TOKEN='${{ github.token }}' gh release view $RELEASE_NAME --json body -q .body)
175170 CHECKSUM_CONTENT=$(cat checksums.txt)
176- FULL_NOTES=$(cat <<EOF
177- $EXISTING_NOTES
178-
179- $CHECKSUM_CONTENT
180- EOF
181- )
171+ FULL_NOTES=$(printf "%s\n\n%s\n" "$EXISTING_NOTES" "$CHECKSUM_CONTENT")
182172 GH_TOKEN='${{ github.token }}' gh release edit $RELEASE_NAME -n "$FULL_NOTES"
183173
184174 GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME ./auth-v$RELEASE_VERSION-x86.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.gz ./auth-v$RELEASE_VERSION.supafast-arm64.tar.gz
You can’t perform that action at this time.
0 commit comments