Change name because it is more than headers

This commit is contained in:
Sébastiaan 2025-01-05 14:19:20 +01:00
parent ee8b2185f9
commit fc803ad089
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
name: Validate script headers name: Validate scripts
on: on:
push: push:
branches: branches:
@ -7,7 +7,7 @@ on:
paths: paths:
- "ct/*.sh" - "ct/*.sh"
- "install/*.sh" - "install/*.sh"
- ".github/workflows/validate-headers.yml" - ".github/workflows/validate-scripts.yml"
jobs: jobs:
check-scripts: check-scripts:
@ -77,7 +77,7 @@ jobs:
run: | run: |
NON_COMPLIANT_FILES="" NON_COMPLIANT_FILES=""
for FILE in ${{ steps.changed-files.outputs.files }}; do for FILE in ${{ steps.changed-files.outputs.files }}; do
if ! sed -n '3p' "$FILE" | { grep -qE "^# Copyright (c) [0-9]{4}(-[0-9]{4})? (community-scripts ORG|tteck|community-scripts ORG \| tteck)$" || false }; then if ! sed -n '3p' "$FILE" | grep -qE "^# Copyright \(c\) [0-9]{4}(-[0-9]{4})? (tteck \| community-scripts ORG|community-scripts ORG|tteck)$"; then
NON_COMPLIANT_FILES="$NON_COMPLIANT_FILES $FILE" NON_COMPLIANT_FILES="$NON_COMPLIANT_FILES $FILE"
fi fi
done done
@ -167,8 +167,8 @@ jobs:
}; };
const issueNumber = context.payload.pull_request ? context.payload.pull_request.number : null; const issueNumber = context.payload.pull_request ? context.payload.pull_request.number : null;
const commentIdentifier = 'validate-headers'; const commentIdentifier = 'validate-scripts';
let newCommentBody = `<!-- ${commentIdentifier}-start -->\n### Script header validation\n\n`; let newCommentBody = `<!-- ${commentIdentifier}-start -->\n### Script validation\n\n`;
if (result === 'failure') { if (result === 'failure') {
newCommentBody += ':x: We found issues in the following changed files:\n\n'; newCommentBody += ':x: We found issues in the following changed files:\n\n';
@ -178,7 +178,7 @@ jobs:
} }
} }
} else { } else {
newCommentBody += `:rocket: All changed shell scripts passed header validation!\n`; newCommentBody += `:rocket: All changed shell scripts passed validation!\n`;
} }
newCommentBody += `\n\n<!-- ${commentIdentifier}-end -->`; newCommentBody += `\n\n<!-- ${commentIdentifier}-end -->`;

View File

@ -3,7 +3,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
# Copyright (c) 2021-2025 tteck # Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://gethomepage.dev/ # Source: https://gethomepage.dev/
# App Default Values # App Default Values
APP="Homepage" APP="Homepage"