Skip to content

Commit a8f44d6

Browse files
committed
[ci] Add workflow to dispatch all browser versions deploy
[skip ci] Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 49bbebd commit a8f44d6

File tree

2 files changed

+94
-6
lines changed

2 files changed

+94
-6
lines changed

.github/workflows/create-changelog-pr.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ jobs:
5353
merge-multiple: 'true'
5454
run-id: ${{ inputs.run-id }}
5555
github-token: ${{ secrets.GITHUB_TOKEN }}
56-
- name: Commit configs
57-
run: |
58-
git config --local user.email "selenium-ci@users.noreply.github.com"
59-
git config --local user.name "Selenium CI Bot"
60-
git add .
61-
git commit -m "[ci] Upload CHANGELOG for Node/Standalone ${{ inputs.browser-name }} version with Grid ${{ inputs.grid-version }}" || exit 0
6256
- name: Commit & Push changes
6357
if: steps.check-pr.outputs.pr-exists == 'true'
6458
uses: actions-js/push@master
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Deploy all browser versions
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
stable:
7+
description: 'Use upstream stable build'
8+
required: true
9+
type: string
10+
default: 'true'
11+
reuse-base:
12+
description: 'Reuse base image to build'
13+
required: false
14+
type: boolean
15+
default: true
16+
grid-version:
17+
description: 'Grid version to build. E.g: 4.28.1. Must provide if reusing base image'
18+
required: false
19+
type: string
20+
default: ''
21+
push-image:
22+
description: 'Push image after testing successfully'
23+
required: true
24+
type: boolean
25+
default: false
26+
pr-changelog:
27+
description: 'Create a PR for CHANGELOG'
28+
required: true
29+
type: boolean
30+
default: true
31+
32+
jobs:
33+
dispatch-chrome:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Dispatch Chrome versions
37+
uses: actions/github-script@v7
38+
with:
39+
script: |
40+
await github.rest.actions.createWorkflowDispatch({
41+
owner: context.repo.owner,
42+
repo: context.repo.repo,
43+
workflow_id: 'release-chrome-versions.yml',
44+
ref: context.ref,
45+
inputs: {
46+
'stable': '${{ github.event.inputs.stable }}',
47+
'reuse-base': '${{ github.event.inputs.reuse-base }}',
48+
'grid-version': '${{ github.event.inputs.grid-version }}',
49+
'push-image': '${{ github.event.inputs.push-image }}',
50+
'pr-changelog': '${{ github.event.inputs.pr-changelog }}'
51+
}
52+
});
53+
54+
dispatch-edge:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Dispatch Edge versions
58+
uses: actions/github-script@v7
59+
with:
60+
script: |
61+
await github.rest.actions.createWorkflowDispatch({
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
workflow_id: 'release-edge-versions.yml',
65+
ref: context.ref,
66+
inputs: {
67+
'stable': '${{ github.event.inputs.stable }}',
68+
'reuse-base': '${{ github.event.inputs.reuse-base }}',
69+
'grid-version': '${{ github.event.inputs.grid-version }}',
70+
'push-image': '${{ github.event.inputs.push-image }}',
71+
'pr-changelog': '${{ github.event.inputs.pr-changelog }}'
72+
}
73+
});
74+
75+
dispatch-firefox:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Dispatch Firefox versions
79+
uses: actions/github-script@v7
80+
with:
81+
script: |
82+
await github.rest.actions.createWorkflowDispatch({
83+
owner: context.repo.owner,
84+
repo: context.repo.repo,
85+
workflow_id: 'release-firefox-versions.yml',
86+
ref: context.ref,
87+
inputs: {
88+
'stable': '${{ github.event.inputs.stable }}',
89+
'reuse-base': '${{ github.event.inputs.reuse-base }}',
90+
'grid-version': '${{ github.event.inputs.grid-version }}',
91+
'push-image': '${{ github.event.inputs.push-image }}',
92+
'pr-changelog': '${{ github.event.inputs.pr-changelog }}'
93+
}
94+
});

0 commit comments

Comments
 (0)