From 0d91a7f1a10299eb8379e229bf5915b21192ab19 Mon Sep 17 00:00:00 2001 From: Atlas Date: Wed, 11 Feb 2026 04:55:47 +0000 Subject: [PATCH] fix: remove container isolation - use host runner environment --- .gitea/workflows/syntax-check.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/syntax-check.yml b/.gitea/workflows/syntax-check.yml index fbcb408..ca18482 100644 --- a/.gitea/workflows/syntax-check.yml +++ b/.gitea/workflows/syntax-check.yml @@ -20,12 +20,9 @@ on: jobs: syntax-check: runs-on: linux,x86_64,docker - container: - image: alpine:3.19 steps: - name: Checkout code run: | - apk add --no-cache git git clone --depth 1 "$(echo "${{ gitea.server_url }}" | sed "s|://|://oauth2:${{ gitea.token }}@|")/${{ gitea.repository }}.git" . git checkout -q ${{ github.sha }} echo "✓ Checkout complete" @@ -34,7 +31,11 @@ jobs: - name: Install shellcheck run: | echo "Installing shellcheck..." - apk add --no-cache 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