From 03664666b5352b893748917ce16dbe7f48244602 Mon Sep 17 00:00:00 2001 From: Atlas Date: Wed, 11 Feb 2026 04:58:16 +0000 Subject: [PATCH] revert: restore working workflow from run #7 --- .gitea/workflows/syntax-check.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/syntax-check.yml b/.gitea/workflows/syntax-check.yml index 3269a65..ca18482 100644 --- a/.gitea/workflows/syntax-check.yml +++ b/.gitea/workflows/syntax-check.yml @@ -25,18 +25,34 @@ jobs: run: | git clone --depth 1 "$(echo "${{ gitea.server_url }}" | sed "s|://|://oauth2:${{ gitea.token }}@|")/${{ gitea.repository }}.git" . git checkout -q ${{ github.sha }} + echo "✓ Checkout complete" + ls -la slackecho - name: Install shellcheck - run: sudo apt-get update && sudo apt-get install -y shellcheck + run: | + echo "Installing shellcheck..." + if command -v apk >/dev/null 2>&1; then + apk add --no-cache shellcheck + elif command -v apt-get >/dev/null 2>&1; then + apt-get update && apt-get install -y shellcheck + fi + echo "✓ shellcheck installed" - name: Run bash syntax check - run: bash -n slackecho + run: | + echo "Running bash syntax check..." + bash -n slackecho + echo "✓ Syntax check passed" - name: Run shellcheck analysis - run: shellcheck slackecho + run: | + echo "Running shellcheck analysis..." + shellcheck slackecho + echo "✓ Shellcheck passed" - name: Verify script is executable run: | + echo "Checking executable permission..." if [ -x slackecho ]; then echo "✓ slackecho is executable" else