Moved to use add-and-commit
This commit is contained in:
parent
e1e26b9f76
commit
cfbacc099a
|
@ -32,11 +32,11 @@ jobs:
|
||||||
- name: Merge JSON files
|
- name: Merge JSON files
|
||||||
run: node .github/workflows/merge.js
|
run: node .github/workflows/merge.js
|
||||||
|
|
||||||
- name: Commit to gh-pages branch
|
- name: Commit samples.json to gh-pages
|
||||||
run: |
|
uses: EndBug/add-and-commit@v9
|
||||||
git config --local user.email "${{ secrets.USER_EMAIL }}"
|
with:
|
||||||
git config --local user.name "${{ secrets.USER_NAME }}"
|
cwd: ./gh-pages
|
||||||
git checkout gh-pages
|
branch: gh-pages
|
||||||
git add samples.json
|
add: 'samples.json --force'
|
||||||
git commit -m "Update samples.json"
|
push: true
|
||||||
git push
|
token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue