File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Check for bashisms
2
2
3
3
on :
4
- push :
5
- paths :
6
- - tabs/**
7
- branches : [ "main" ]
4
+ # push:
5
+ # paths:
6
+ # - tabs/**
7
+ # branches: [ "main" ]
8
8
pull_request :
9
9
paths :
10
10
- tabs/**
@@ -16,11 +16,16 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
19
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v4
20
+ - run : git fetch origin ${{ github.base_ref }}
20
21
21
22
- name : Install devscripts
22
23
run : sudo apt-get update && sudo apt-get install devscripts
23
24
24
- - name : Check for bashisms
25
- working-directory : tabs
26
- run : find . -name '*.sh' | xargs -P 4 -n 1 checkbashisms
25
+ - name : Check for bashisms in changed files
26
+ run : |
27
+ for file in $(git diff --name-only origin/${{ github.base_ref }} HEAD tabs); do
28
+ if [[ "$file" == *.sh ]]; then
29
+ checkbashisms "$file"
30
+ fi
31
+ done
You can’t perform that action at this time.
0 commit comments