From cfbacc099a1c7bc3c7720c4047f2563f29522ace Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sun, 24 Mar 2024 15:19:12 -0400 Subject: [PATCH] Moved to use add-and-commit --- .github/workflows/merge-json.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/merge-json.yml b/.github/workflows/merge-json.yml index e707a9373..819cd2f18 100644 --- a/.github/workflows/merge-json.yml +++ b/.github/workflows/merge-json.yml @@ -32,11 +32,11 @@ jobs: - name: Merge JSON files run: node .github/workflows/merge.js - - name: Commit to gh-pages branch - run: | - git config --local user.email "${{ secrets.USER_EMAIL }}" - git config --local user.name "${{ secrets.USER_NAME }}" - git checkout gh-pages - git add samples.json - git commit -m "Update samples.json" - git push \ No newline at end of file + - name: Commit samples.json to gh-pages + uses: EndBug/add-and-commit@v9 + with: + cwd: ./gh-pages + branch: gh-pages + add: 'samples.json --force' + push: true + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file