Skip to content

Commit 2b47a55

Browse files
committed
.
1 parent 3b23ad9 commit 2b47a55

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/generate-page-docs.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ jobs:
3131
until $(curl -o docs/index.html --silent --head --fail http://0.0.0.0:8000/api/docs); do
3232
sleep 1
3333
done
34-
- name: Commit index.html
34+
35+
- name: Commit files
3536
run: |
36-
git config --global user.name 'Generate page docs'
37-
git add docs/index.html
38-
git commit -m "Update page docs"
39-
git push origin main
37+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
38+
git config --local user.name "github-actions[bot]"
39+
git commit -a -m "Add changes"
40+
41+
- name: Push changes
42+
uses: ad-m/github-push-action@master
43+
with:
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
force_with_lease: true

0 commit comments

Comments
 (0)