@@ -111,9 +111,11 @@ jobs:
111
111
local hash_cmd=$2
112
112
echo "### ${hash_type}" >> checksums.txt
113
113
for file in auth-v$RELEASE_VERSION*.tar.gz; do
114
- echo "\`$file\`:\n\`\`\`" >> checksums.txt
114
+ echo "\`$file\`:" >> checksums.txt
115
+ echo "\`\`\`" >> checksums.txt
115
116
$hash_cmd "$file" | awk '{print $1}' >> checksums.txt
116
- echo "\`\`\`\n" >> checksums.txt
117
+ echo "\`\`\`" >> checksums.txt
118
+ echo "" >> checksums.txt
117
119
done
118
120
}
119
121
@@ -132,11 +134,18 @@ jobs:
132
134
PR_NUMBER='${{ steps.release.outputs.pr && fromJSON(steps.release.outputs.pr).number }}'
133
135
CHECKSUM_CONTENT=$(cat checksums.txt)
134
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
+ )
143
+
135
144
GH_TOKEN='${{ github.token }}' gh release \
136
145
create $RELEASE_NAME \
137
146
--title "v$RELEASE_VERSION" \
138
147
--prerelease \
139
- -n "This is a release candidate. See release-please PR #$PR_NUMBER for context.\n\n$CHECKSUM_CONTENT "
148
+ -n "$RELEASE_NOTES "
140
149
141
150
GH_TOKEN='${{ github.token }}' gh pr comment "$PR_NUMBER" \
142
151
-b "Release candidate [v$RELEASE_VERSION](https://github.com/supabase/gotrue/releases/tag/$RELEASE_NAME) published."
@@ -164,7 +173,12 @@ jobs:
164
173
# Append checksums to existing release notes
165
174
EXISTING_NOTES=$(GH_TOKEN='${{ github.token }}' gh release view $RELEASE_NAME --json body -q .body)
166
175
CHECKSUM_CONTENT=$(cat checksums.txt)
167
- FULL_NOTES="${EXISTING_NOTES}\n\n${CHECKSUM_CONTENT}"
176
+ FULL_NOTES=$(cat <<EOF
177
+ $EXISTING_NOTES
178
+
179
+ $CHECKSUM_CONTENT
180
+ EOF
181
+ )
168
182
GH_TOKEN='${{ github.token }}' gh release edit $RELEASE_NAME -n "$FULL_NOTES"
169
183
170
184
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
0 commit comments