From c352fee31681ca7b77262f67eb6737b37967960a Mon Sep 17 00:00:00 2001 From: Erin Osher <4386583+erinosher@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:03:17 +0000 Subject: [PATCH] Update schools_updater.yml Fix failing CSV push --- .github/workflows/schools_updater.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/schools_updater.yml b/.github/workflows/schools_updater.yml index 2e266af..d421e8d 100644 --- a/.github/workflows/schools_updater.yml +++ b/.github/workflows/schools_updater.yml @@ -76,12 +76,12 @@ jobs: jq -r '.[].name' data.json >> schools.csv - name: Commit and push CSV file - run: | - # Configure git - git config --local user.name "github-actions[bot]" - git config --local user.email "github-actions[bot]@users.noreply.github.com" - - # Commit and push changes - git add schools.csv - git commit -m "Update schools CSV file from API data [skip ci]" - git push + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Update schools CSV file from API data [skip ci] + file_pattern: schools.csv + commit_user_name: github-actions[bot] + commit_user_email: github-actions[bot]@users.noreply.github.com + commit_author: github-actions[bot] + skip_fetch: true + skip_checkout: true