From 4ec3e7a9decd3734b0a8ed8b3739512b4ad93b80 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Mon, 24 Jun 2024 10:36:56 -0500 Subject: [PATCH] [build] have update-documentation make a PR from the updated branch --- .github/workflows/update-documentation.yml | 40 ++++++++++------------ 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml index 7f0aab3b2cd90..dfbf0155976ba 100644 --- a/.github/workflows/update-documentation.yml +++ b/.github/workflows/update-documentation.yml @@ -23,10 +23,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: TEMP Get correct generation code - run: | - git fetch origin trunk - git checkout origin/trunk -- Rakefile - name: Setup Java uses: actions/setup-java@v3 with: @@ -54,10 +50,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: TEMP Get correct generation code - run: | - git fetch origin trunk - git checkout origin/trunk -- Rakefile - name: Setup Java uses: actions/setup-java@v3 with: @@ -85,12 +77,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: TEMP Get correct generation code - run: | - git fetch origin trunk - git cherry-pick da71ba31 - git cherry-pick 6936f642 - git checkout origin/trunk -- Rakefile - name: Set up Python 3.8 uses: actions/setup-python@v4 with: @@ -121,10 +107,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: TEMP Get correct generation code - run: | - git fetch origin trunk - git checkout origin/trunk -- Rakefile - name: Install specific version of DocFX tool # Pinning to 2.75.3 to avoid breaking changes in newer versions # See https://github.com/dotnet/docfx/issues/9855 @@ -151,10 +133,6 @@ jobs: run: | git config --local user.email "selenium-ci@users.noreply.github.com" git config --local user.name "Selenium CI Bot" - - name: TEMP Get correct generation code - run: | - git fetch origin trunk - git checkout origin/trunk -- Rakefile - name: Install npm dependencies run: | npm install @@ -211,3 +189,21 @@ jobs: done - name: Push Branch run: git push origin api-docs-${{ inputs.tag }} + - name: Documentation Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.SELENIUM_CI_TOKEN }} + author: Selenium CI Bot + delete-branch: true + branch: api-docs-${{ inputs.tag }} + base: gh-pages + title: Update documentation for ${{ inputs.tag }} + body: | + This PR updates the API documentation for all bindings + based on the provided tag name. + + - Auto-generated by [create-pull-request][1] + + [1]: https://github.com/peter-evans/create-pull-request + labels: documentation + draft: false