Skip to content

Commit 4ec3e7a

Browse files
committed
[build] have update-documentation make a PR from the updated branch
1 parent fbd6ff3 commit 4ec3e7a

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

.github/workflows/update-documentation.yml

+18-22
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
run: |
2424
git config --local user.email "[email protected]"
2525
git config --local user.name "Selenium CI Bot"
26-
- name: TEMP Get correct generation code
27-
run: |
28-
git fetch origin trunk
29-
git checkout origin/trunk -- Rakefile
3026
- name: Setup Java
3127
uses: actions/setup-java@v3
3228
with:
@@ -54,10 +50,6 @@ jobs:
5450
run: |
5551
git config --local user.email "[email protected]"
5652
git config --local user.name "Selenium CI Bot"
57-
- name: TEMP Get correct generation code
58-
run: |
59-
git fetch origin trunk
60-
git checkout origin/trunk -- Rakefile
6153
- name: Setup Java
6254
uses: actions/setup-java@v3
6355
with:
@@ -85,12 +77,6 @@ jobs:
8577
run: |
8678
git config --local user.email "[email protected]"
8779
git config --local user.name "Selenium CI Bot"
88-
- name: TEMP Get correct generation code
89-
run: |
90-
git fetch origin trunk
91-
git cherry-pick da71ba31
92-
git cherry-pick 6936f642
93-
git checkout origin/trunk -- Rakefile
9480
- name: Set up Python 3.8
9581
uses: actions/setup-python@v4
9682
with:
@@ -121,10 +107,6 @@ jobs:
121107
run: |
122108
git config --local user.email "[email protected]"
123109
git config --local user.name "Selenium CI Bot"
124-
- name: TEMP Get correct generation code
125-
run: |
126-
git fetch origin trunk
127-
git checkout origin/trunk -- Rakefile
128110
- name: Install specific version of DocFX tool
129111
# Pinning to 2.75.3 to avoid breaking changes in newer versions
130112
# See https://github.com/dotnet/docfx/issues/9855
@@ -151,10 +133,6 @@ jobs:
151133
run: |
152134
git config --local user.email "[email protected]"
153135
git config --local user.name "Selenium CI Bot"
154-
- name: TEMP Get correct generation code
155-
run: |
156-
git fetch origin trunk
157-
git checkout origin/trunk -- Rakefile
158136
- name: Install npm dependencies
159137
run: |
160138
npm install
@@ -211,3 +189,21 @@ jobs:
211189
done
212190
- name: Push Branch
213191
run: git push origin api-docs-${{ inputs.tag }}
192+
- name: Documentation Pull Request
193+
uses: peter-evans/create-pull-request@v6
194+
with:
195+
token: ${{ secrets.SELENIUM_CI_TOKEN }}
196+
author: Selenium CI Bot <[email protected]>
197+
delete-branch: true
198+
branch: api-docs-${{ inputs.tag }}
199+
base: gh-pages
200+
title: Update documentation for ${{ inputs.tag }}
201+
body: |
202+
This PR updates the API documentation for all bindings
203+
based on the provided tag name.
204+
205+
- Auto-generated by [create-pull-request][1]
206+
207+
[1]: https://github.com/peter-evans/create-pull-request
208+
labels: documentation
209+
draft: false

0 commit comments

Comments
 (0)