From fc803ad08905b2b1c8a7c1a7a201ff612683156c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastiaan?= Date: Sun, 5 Jan 2025 14:19:20 +0100 Subject: [PATCH] Change name because it is more than headers --- .../{validate-headers.yml => validate-scripts.yml} | 12 ++++++------ ct/homepage.sh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{validate-headers.yml => validate-scripts.yml} (95%) diff --git a/.github/workflows/validate-headers.yml b/.github/workflows/validate-scripts.yml similarity index 95% rename from .github/workflows/validate-headers.yml rename to .github/workflows/validate-scripts.yml index 0747b9d5..10d6182d 100644 --- a/.github/workflows/validate-headers.yml +++ b/.github/workflows/validate-scripts.yml @@ -1,4 +1,4 @@ -name: Validate script headers +name: Validate scripts on: push: branches: @@ -7,7 +7,7 @@ on: paths: - "ct/*.sh" - "install/*.sh" - - ".github/workflows/validate-headers.yml" + - ".github/workflows/validate-scripts.yml" jobs: check-scripts: @@ -77,7 +77,7 @@ jobs: run: | NON_COMPLIANT_FILES="" 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" fi done @@ -167,8 +167,8 @@ jobs: }; const issueNumber = context.payload.pull_request ? context.payload.pull_request.number : null; - const commentIdentifier = 'validate-headers'; - let newCommentBody = `\n### Script header validation\n\n`; + const commentIdentifier = 'validate-scripts'; + let newCommentBody = `\n### Script validation\n\n`; if (result === 'failure') { newCommentBody += ':x: We found issues in the following changed files:\n\n'; @@ -178,7 +178,7 @@ jobs: } } } else { - newCommentBody += `:rocket: All changed shell scripts passed header validation!\n`; + newCommentBody += `:rocket: All changed shell scripts passed validation!\n`; } newCommentBody += `\n\n`; diff --git a/ct/homepage.sh b/ct/homepage.sh index 6379580e..e2c74b36 100644 --- a/ct/homepage.sh +++ b/ct/homepage.sh @@ -3,7 +3,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m # Copyright (c) 2021-2025 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://gethomepage.dev/ +# Source: https://gethomepage.dev/ # App Default Values APP="Homepage"