From 599c462035083fc9a3d387b9a18ddc89762ffc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastiaan?= Date: Mon, 6 Jan 2025 10:39:55 +0100 Subject: [PATCH] fix: buffer from base64 in formatting pipeline (#1285) * fix buffer from base64 * fix diff --- .github/workflows/validate-formatting.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-formatting.yaml b/.github/workflows/validate-formatting.yaml index eac0936fd..760ab2771 100644 --- a/.github/workflows/validate-formatting.yaml +++ b/.github/workflows/validate-formatting.yaml @@ -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`; }