Skip to content

Commit ee95aec

Browse files
See if this works
1 parent 5c2b069 commit ee95aec

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,28 @@ name: Validate CSV
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
pull_request:
88
branches:
9-
- main
9+
- main
1010
permissions:
1111
contents: write
1212
jobs:
1313
test-build:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- 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'
2317
with:
2418
fetch-depth: 0
19+
ref: ${{ github.head_ref }}
2520
- uses: actions/setup-python@v5
2621
with:
2722
python-version: "3.12"
2823
- run: pip install -r linters/requirements.txt
2924
- run: python linters/autoformat-csv.py
3025
- run: python linters/lint-csv.py
3126
- 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]'
3429
git diff --quiet || git commit -am "Autoformat CSV"
3530
git push

0 commit comments

Comments
 (0)