Skip to content

Commit be25555

Browse files
committed
[build] separate documentation PRs by language due to size
1 parent 53eec40 commit be25555

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/update-documentation.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ env:
3939
jobs:
4040
build-docs:
4141
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
language: [java, rb, py, dotnet, node]
45+
fail-fast: false
46+
# Only run if the language is selected or "all" was chosen
47+
if: ${{ inputs.language == 'all' || inputs.language == matrix.language }}
4248
steps:
4349
- name: Checkout repository
4450
uses: actions/checkout@v4
@@ -58,34 +64,33 @@ jobs:
5864
java-version: 17
5965
distribution: 'temurin'
6066
- name: Set up Python 3.9
61-
if: ${{ inputs.language == 'all' || inputs.language == 'py' }}
67+
if: ${{ matrix.language == 'py' }}
6268
uses: actions/setup-python@v5
6369
with:
6470
python-version: 3.9
6571
- name: Install dependencies
66-
if: ${{ inputs.language == 'all' || inputs.language == 'py' }}
72+
if: ${{ matrix.language == 'py' }}
6773
run: |
6874
python -m pip install --upgrade pip
6975
pip install tox
7076
- name: Install npm dependencies
71-
if: ${{ inputs.language == 'all' || inputs.language == 'node' }}
77+
if: ${{ matrix.language == 'node' }}
7278
run: |
7379
npm install
7480
npm install --prefix javascript/node/selenium-webdriver
7581
- name: Update Documentation
76-
run: ./go ${{ inputs.language }}:docs
77-
82+
run: ./go ${{ matrix.language }}:docs
7883
- name: Documentation Pull Request
7984
uses: peter-evans/create-pull-request@v6
8085
with:
8186
token: ${{ secrets.SELENIUM_CI_TOKEN }}
8287
author: Selenium CI Bot <selenium-ci@users.noreply.github.com>
8388
delete-branch: true
84-
branch: api-docs-${{ inputs.version }}-${{ inputs.language }}
89+
branch: api-docs-${{ inputs.version }}-${{ matrix.language }}
8590
base: gh-pages
86-
title: Update documentation for Selenium ${{ inputs.version }} (${{ inputs.language }})
91+
title: Update documentation for Selenium ${{ inputs.version }} (${{ matrix.language }})
8792
body: |
88-
This PR updates the API documentation for **${{ inputs.language }}** language bindings to version **${{ inputs.version }}**.
93+
This PR updates the API documentation for **${{ matrix.language }}** language bindings to version **${{ inputs.version }}**.
8994
9095
- Auto-generated by [create-pull-request][1]
9196

0 commit comments

Comments
 (0)