From d6990724b1ac46b27d0dba937f69b0663914166e Mon Sep 17 00:00:00 2001 From: ZoopaMario Date: Sat, 28 Dec 2024 20:42:05 +0100 Subject: [PATCH] Add shellcheck workflow --- .forgejo/workflows/lint-and-validate.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.forgejo/workflows/lint-and-validate.yml b/.forgejo/workflows/lint-and-validate.yml index 96e521b..80157af 100644 --- a/.forgejo/workflows/lint-and-validate.yml +++ b/.forgejo/workflows/lint-and-validate.yml @@ -24,9 +24,11 @@ jobs: - name: Checkout Code uses: https://code.forgejo.org/actions/checkout@v4 +<<<<<<< HEAD - name: List Checked Out Files run: ls -al /workspace/ZoopaMario/backup-automation +>>>>>>> 20dd94e (Add shellcheck workflow) - name: Install ShellCheck run: | apt-get update && apt-get install -y shellcheck @@ -40,19 +42,6 @@ jobs: - name: Debug Commit Message run: git log -1 --pretty=%B - - name: Lint Bash Scripts - run: | - echo "Linting Bash scripts..." - find . -name '*.sh' -print0 | xargs -0 shellcheck - - - name: Check Commit Messages - run: | - echo "Checking commit message format..." - if ! git log -1 --pretty=%B | grep -Eq '^(feat|fix|chore|docs|style|refactor|test|perf):'; then - echo "Commit message does not follow the conventional format: : " - exit 1 - fi - - name: Show Environment Variables run: env