Skip to content

Commit e7aa0bf

Browse files
committed
Fix GitHub Actions workflow for pre-commit checks
1 parent de21066 commit e7aa0bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ jobs:
1414
- uses: actions/setup-python@v5
1515
with:
1616
python-version: '3.x'
17+
- name: Install shfmt
18+
run: |
19+
curl -L https://github.com/mvdan/sh/releases/download/v3.8.0/shfmt_v3.8.0_linux_amd64 -o /tmp/shfmt
20+
chmod +x /tmp/shfmt
21+
sudo mv /tmp/shfmt /usr/local/bin/shfmt
1722
- uses: pre-commit/action@v3.0.0
1823
with:
19-
entry: pre-commit run --all-files
24+
extra_args: --all-files
2025

0 commit comments

Comments
 (0)