From ba758d45ec0a25e4bf2a6e6e5ef179af2f8e5974 Mon Sep 17 00:00:00 2001 From: gbattistel Date: Fri, 15 Nov 2024 12:36:13 -0300 Subject: [PATCH] docs: updated docs pipeline --- .github/workflows/generate_docs.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/generate_docs.yml b/.github/workflows/generate_docs.yml index 8b039ab8..c4623556 100644 --- a/.github/workflows/generate_docs.yml +++ b/.github/workflows/generate_docs.yml @@ -51,24 +51,10 @@ jobs: run: | git config push.autoSetupRemote true - - name: Create new branch for docs + - name: Create new branch name for docs run: | BRANCH_NAME="docs/update-$(date +'%Y%m%d%H%M%S')" echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV - git checkout -b $BRANCH_NAME - - - name: Commit changes - run: | - git add docs/ docs_markdown/ - git commit -m "docs: Generated full documentation" || echo "No changes to commit" - - - name: Push changes to new branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "Pushing to branch: $BRANCH_NAME" - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git - git push --set-upstream origin $BRANCH_NAME - name: Create Pull Request using GitHub Actions bot uses: peter-evans/create-pull-request@v7 @@ -77,10 +63,12 @@ jobs: docs/ docs_markdown/ token: ${{ secrets.GITHUB_TOKEN }} + committer: TelnyxIntegrations + base: main branch: ${{ env.branch_name }} delete-branch: true title: '[docs] Update generated HTML and Markdown documentation' - base: main + commit-message: "docs: Generated full documentation" body: "This PR updates the full documentation generated by Fastlane using Jazzy and SourceDocs." labels: "documentation, auto-generated" draft: true