Switching checkin handler
This commit is contained in:
parent
788e0e783d
commit
3f74228a12
28
.github/workflows/doc-build.yaml
vendored
28
.github/workflows/doc-build.yaml
vendored
@ -20,17 +20,21 @@ jobs:
|
|||||||
|
|
||||||
# .nojekyll file must exist in docs
|
# .nojekyll file must exist in docs
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v7 # You can change this to use a specific version.
|
- name: Commit documentation changes
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/mp-se/gravitymon.git --branch docs --single-branch docs
|
||||||
|
cp -r docs/_build/html/* docs/
|
||||||
|
cd docs
|
||||||
|
git config --local user.email "action@noreply.github.com"
|
||||||
|
git config --local user.name "GitHub Action"
|
||||||
|
git add .
|
||||||
|
git commit -m "Update documentation" -a || true
|
||||||
|
# The above command will fail if no changes were present, so we ignore
|
||||||
|
# the return code.
|
||||||
|
- name: Push changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
add: 'docs'
|
|
||||||
author_name: GitHub Action
|
|
||||||
author_email: magnus@users.noreply.github.com
|
|
||||||
|
|
||||||
branch: docs
|
branch: docs
|
||||||
|
directory: docs
|
||||||
pull: 'NO-PULL'
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch_mode: create
|
|
||||||
default_author: github_actor
|
|
||||||
message: 'GitHub Action Build'
|
|
||||||
pathspec_error_handling: ignore
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user