push doc autogeneration changes to new branch (#531)

This commit is contained in:
Keepers 2022-08-18 16:34:03 -06:00 committed by GitHub
parent 350b148155
commit 42df5cef58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,12 +55,26 @@ jobs:
mv ./src/cmd/mdgen/cli_markdown/* ./docs/docs/cli/
rm -R ./src/cmd/mdgen/cli_markdown/
# # make a commit for any file changes
# make a commit for any file changes
# - name: Commit the Auto-Generated Files
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# branch: docs_autogen
# create_branch: true
# commit_message: Documentation Auto-generation
# commit_user_name: github-actions[bot]
# commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
# commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
# make a new PR for the changes
- name: Make a New PR With the Auto-Generated Docs
uses: EndBug/add-and-commit@v9
with:
# pull: '--rebase'
new_branch: docs_autogen
push: 'origin docs_autogen --set-upstream --force'
message: 'Documentation Auto-generation'
committer_name: github-actions[bot]
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
default_author: github_actor