Skip to content

Add fetch depth

Add fetch depth #69

Workflow file for this run

---
name: Validate CSV
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v4
if: github.event_name == 'push'
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r linters/requirements.txt
- run: python linters/autoformat-csv.py
- run: python linters/lint-csv.py
- run: |
git config --global user.name 'Jon Banafato'
git config --global user.email '[email protected]'
git diff --quiet || git commit -am "Autoformat CSV"
git push