Skip to content

Commit

Permalink
[build] have update-documentation make a PR from the updated branch
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 24, 2024
1 parent fbd6ff3 commit 4ec3e7a
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
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:
Expand Down Expand Up @@ -54,10 +50,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
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:
Expand Down Expand Up @@ -85,12 +77,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
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:
Expand Down Expand Up @@ -121,10 +107,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
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
Expand All @@ -151,10 +133,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
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
Expand Down Expand Up @@ -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 <[email protected]>
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

0 comments on commit 4ec3e7a

Please sign in to comment.