We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53252ee commit efc03edCopy full SHA for efc03ed
1 file changed
.github/workflows/shfmt.yml
@@ -4,7 +4,8 @@ on:
4
pull_request:
5
paths:
6
- '**/*.sh'
7
- - '.github/workflows/shfmt.yml'
+ - .github/workflows/shfmt.yml
8
+ workflow_dispatch:
9
10
permissions:
11
contents: read
@@ -14,8 +15,12 @@ jobs:
14
15
runs-on: ubuntu-latest
16
steps:
17
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- - run: docker run -v "$(pwd)":/sh -w /sh peterdavehello/shfmt:2.6.3 shfmt -sr -i 2 -l -w -ci .
18
- - run: git diff --color --exit-code
+ - name: Install shfmt
19
+ run: |
20
+ sudo apt-get update
21
+ sudo apt-get install -y shfmt
22
+ - name: Run shfmt
23
+ run: shfmt -sr -i 2 -l -w -ci -d .
24
25
shellcheck:
26
0 commit comments