From d111f18cea6c38e79b676759015f620134cf0c2d Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 12 Oct 2025 18:03:01 +0800 Subject: [PATCH] Delete .github/workflows/shell-format.yml --- .github/workflows/shell-format.yml | 66 ------------------------------ 1 file changed, 66 deletions(-) delete mode 100644 .github/workflows/shell-format.yml diff --git a/.github/workflows/shell-format.yml b/.github/workflows/shell-format.yml deleted file mode 100644 index 8c73160..0000000 --- a/.github/workflows/shell-format.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Shell Format & Lint (Minimal) - -on: - push: - branches: [main] - -jobs: - format-lint: - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install shfmt & shellcheck - run: | - set -euo pipefail - brew update - brew install shfmt shellcheck - shfmt -version || true - shellcheck --version || true - - - name: List target files - id: list - shell: bash - run: | - set -euo pipefail - FILES=$(git ls-files '*.sh' 'mole' || true) - echo "FILES<> "$GITHUB_OUTPUT" - echo "$FILES" >> "$GITHUB_OUTPUT" - echo "EOF" >> "$GITHUB_OUTPUT" - if [[ -z "$FILES" ]]; then - echo "found=0" >> "$GITHUB_OUTPUT" - echo "No shell files found." - else - echo "found=1" >> "$GITHUB_OUTPUT" - echo "Files:" - echo "$FILES" - fi - - - name: Run shfmt (diff only) - if: steps.list.outputs.found == '1' - shell: bash - run: | - set -euo pipefail - shfmt -i 4 -ci -sr -d ${FILES} - env: - FILES: ${{ steps.list.outputs.FILES }} - - - name: Run shellcheck - if: steps.list.outputs.found == '1' - shell: bash - run: | - set -euo pipefail - if [[ -f .shellcheckrc ]]; then - shellcheck --rcfile .shellcheckrc ${FILES} - else - shellcheck ${FILES} - fi - env: - FILES: ${{ steps.list.outputs.FILES }} - - - name: Nothing to check - if: steps.list.outputs.found == '0' - run: echo "Skip: no shell files." \ No newline at end of file