diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index 8fab91caa..7fb3b76db 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -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 +