File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,7 @@ jobs:
134
134
PR_NUMBER='${{ steps.release.outputs.pr && fromJSON(steps.release.outputs.pr).number }}'
135
135
CHECKSUM_CONTENT=$(cat checksums.txt)
136
136
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")
143
138
144
139
GH_TOKEN='${{ github.token }}' gh release \
145
140
create $RELEASE_NAME \
173
168
# Append checksums to existing release notes
174
169
EXISTING_NOTES=$(GH_TOKEN='${{ github.token }}' gh release view $RELEASE_NAME --json body -q .body)
175
170
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")
182
172
GH_TOKEN='${{ github.token }}' gh release edit $RELEASE_NAME -n "$FULL_NOTES"
183
173
184
174
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