fix: buffer from base64 in formatting pipeline (#1285)

* fix buffer from base64

* fix diff
This commit is contained in:
Sébastiaan 2025-01-06 10:39:55 +01:00 committed by GitHub
parent 0909132d5c
commit 599c462035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ jobs:
script: |
const result = "${{ job.status }}" === "success" ? "success" : "failure";
const diff = Buffer.from(
"${{ steps.shfmt.outputs.diff }}",
${{ steps.shfmt.outputs.diff }},
"base64",
).toString();
const issueNumber = context.payload.pull_request
@ -75,7 +75,7 @@ jobs:
if (result === "failure") {
newCommentBody +=
":x: We found issues in the formatting of the following changed files:\n\n\`\`\`diff\n${diff}\n\`\`\`\n";
`:x: We found issues in the formatting of the following changed files:\n\n\`\`\`diff\n${diff}\n\`\`\`\n`;
} else {
newCommentBody += `:rocket: All changed shell scripts are formatted correctly!\n`;
}