From 7227e42382f270ea84493e1d0dbb5af708824b40 Mon Sep 17 00:00:00 2001 From: Atlas Date: Wed, 11 Feb 2026 04:57:25 +0000 Subject: [PATCH] fix: use linux,x86_64,docker runner (avoids container DNS isolation) --- .gitea/workflows/syntax-check.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/syntax-check.yml b/.gitea/workflows/syntax-check.yml index 05d6f2a..3269a65 100644 --- a/.gitea/workflows/syntax-check.yml +++ b/.gitea/workflows/syntax-check.yml @@ -19,36 +19,24 @@ on: jobs: syntax-check: - runs-on: ubuntu-latest + runs-on: linux,x86_64,docker steps: - name: Checkout code 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: | - echo "Installing shellcheck..." - sudo apt-get update && sudo apt-get install -y shellcheck - echo "✓ shellcheck installed" + run: sudo apt-get update && sudo apt-get install -y shellcheck - name: Run bash syntax check - run: | - echo "Running bash syntax check..." - bash -n slackecho - echo "✓ Syntax check passed" + run: bash -n slackecho - name: Run shellcheck analysis - run: | - echo "Running shellcheck analysis..." - shellcheck slackecho - echo "✓ Shellcheck passed" + run: shellcheck slackecho - name: Verify script is executable run: | - echo "Checking executable permission..." if [ -x slackecho ]; then echo "✓ slackecho is executable" else