Moved to use add-and-commit

This commit is contained in:
Hugo Bernier 2024-03-24 15:19:12 -04:00 committed by GitHub
parent e1e26b9f76
commit cfbacc099a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 8 deletions

View File

@ -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
- 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 }}