mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-25 18:16:17 +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: |
|
script: |
|
||||||
const result = "${{ job.status }}" === "success" ? "success" : "failure";
|
const result = "${{ job.status }}" === "success" ? "success" : "failure";
|
||||||
const diff = Buffer.from(
|
const diff = Buffer.from(
|
||||||
"${{ steps.shfmt.outputs.diff }}",
|
${{ steps.shfmt.outputs.diff }},
|
||||||
"base64",
|
"base64",
|
||||||
).toString();
|
).toString();
|
||||||
const issueNumber = context.payload.pull_request
|
const issueNumber = context.payload.pull_request
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
if (result === "failure") {
|
if (result === "failure") {
|
||||||
newCommentBody +=
|
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 {
|
} else {
|
||||||
newCommentBody += `:rocket: All changed shell scripts are formatted correctly!\n`;
|
newCommentBody += `:rocket: All changed shell scripts are formatted correctly!\n`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user