mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update validate-scripts.yml
This commit is contained in:
parent
2646ea6317
commit
02401aa35d
8
.github/workflows/validate-scripts.yml
vendored
8
.github/workflows/validate-scripts.yml
vendored
@ -186,7 +186,11 @@ jobs:
|
|||||||
newCommentBody += ':x: We found issues in the following changed files:\n\n';
|
newCommentBody += ':x: We found issues in the following changed files:\n\n';
|
||||||
for (const [check, files] of Object.entries(nonCompliantFiles)) {
|
for (const [check, files] of Object.entries(nonCompliantFiles)) {
|
||||||
if (files) {
|
if (files) {
|
||||||
newCommentBody += `**${check}:**\n${files.trim().split(' ').map(file => `- ${file}`).join('\n')}\n\n`;
|
newCommentBody += `**${check}:**\n`;
|
||||||
|
files.trim().split(' ').forEach(file => {
|
||||||
|
newCommentBody += `- ${file}: ${check}\n`;
|
||||||
|
});
|
||||||
|
newCommentBody += `\n`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -205,7 +209,7 @@ jobs:
|
|||||||
|
|
||||||
if (existingComment) {
|
if (existingComment) {
|
||||||
if (existingComment.body.includes(commentIdentifier)) {
|
if (existingComment.body.includes(commentIdentifier)) {
|
||||||
const re = new RegExp(String.raw`<!-- ${commentIdentifier}-start -->[\s\S]*?<!-- ${commentIdentifier}-end -->`, "");
|
const re = new RegExp(String.raw`<!-- ${commentIdentifier}-start -->[\\s\\S]*?<!-- ${commentIdentifier}-end -->`, "");
|
||||||
newCommentBody = existingComment.body.replace(re, newCommentBody);
|
newCommentBody = existingComment.body.replace(re, newCommentBody);
|
||||||
} else {
|
} else {
|
||||||
newCommentBody = existingComment.body + '\n\n---\n\n' + newCommentBody;
|
newCommentBody = existingComment.body + '\n\n---\n\n' + newCommentBody;
|
||||||
|
Loading…
Reference in New Issue
Block a user