Skip to content

Commit b244598

Browse files
authored
ci: fix yaml syntax error (#2066)
fixing the yaml [syntax error](https://github.com/supabase/auth/actions/runs/15924164060)
1 parent 1f7de6c commit b244598

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff 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 \
@@ -173,12 +168,7 @@ EOF
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

0 commit comments

Comments
 (0)