File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -3,33 +3,28 @@ name: Validate CSV
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - main
7
7
pull_request :
8
8
branches :
9
- - main
9
+ - main
10
10
permissions :
11
11
contents : write
12
12
jobs :
13
13
test-build :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v4
17
- if : github.event_name == 'pull_request'
18
- with :
19
- fetch-depth : 0
20
- ref : ${{ github.event.pull_request.head.sha }}
21
- - uses : actions/checkout@v4
22
- if : github.event_name == 'push'
23
17
with :
24
18
fetch-depth : 0
19
+ ref : ${{ github.head_ref }}
25
20
- uses : actions/setup-python@v5
26
21
with :
27
22
python-version : " 3.12"
28
23
- run : pip install -r linters/requirements.txt
29
24
- run : python linters/autoformat-csv.py
30
25
- run : python linters/lint-csv.py
31
26
- run : |
32
- git config --global user.name 'Jon Banafato'
33
- git config --global user.email '[email protected] '
27
+ git config user.name 'Jon Banafato'
28
+ git config user.email '[email protected] '
34
29
git diff --quiet || git commit -am "Autoformat CSV"
35
30
git push
You can’t perform that action at this time.
0 commit comments