mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
fix: buffer from base64 in formatting pipeline (#1285)
* fix buffer from base64 * fix diff
This commit is contained in:
parent
0909132d5c
commit
599c462035
4
.github/workflows/validate-formatting.yaml
vendored
4
.github/workflows/validate-formatting.yaml
vendored
@ -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`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user