File tree 2 files changed +56
-0
lines changed
2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -140,3 +140,12 @@ jobs:
140
140
title : " Nightly"
141
141
prerelease : true
142
142
files : ${{ inputs.nightly-release-files }}
143
+ - name : Save changes
144
+ run : |
145
+ git diff > changes.patch
146
+ - name : " Upload changes"
147
+ uses : actions/upload-artifact@v3
148
+ with :
149
+ name : patch-file
150
+ path : changes.patch
151
+ retention-days : 6
Original file line number Diff line number Diff line change
1
+ name : Pin Browsers
2
+ on :
3
+ schedule :
4
+ - cron : 10 0 * * *
5
+ workflow_dispatch :
6
+
7
+ jobs :
8
+ update :
9
+ name : Update Pinned Browsers
10
+ uses : ./.github/workflows/bazel.yml
11
+ with :
12
+ name : Pin Browsers
13
+ cache-key : pin-browsers
14
+ run : bazel run //scripts:pinned_browsers
15
+
16
+ pull-request :
17
+ if : github.repository_owner == 'seleniumhq'
18
+ runs-on : ubuntu-latest
19
+ needs : update
20
+ steps :
21
+ - name : Checkout repository
22
+ uses : actions/checkout@v4
23
+ - name : Download patch
24
+ uses : actions/download-artifact@v4
25
+ with :
26
+ name : patch-file
27
+ - name : Apply Patch
28
+ run : |
29
+ git apply changes.patch
30
+ rm changes.patch
31
+ - name : Check Changes
32
+ run : |
33
+ if [[ -n $(git status --porcelain common/repositories.bzl) ]]; then
34
+ echo "CHANGES_FOUND=true" >> $GITHUB_ENV
35
+ fi
36
+ - name : Create Pull Request
37
+ if : env.CHANGES_FOUND == 'true'
38
+ uses : peter-evans/create-pull-request@v5
39
+ with :
40
+ token : ${{ secrets.SELENIUM_CI_TOKEN }}
41
+ add-paths : common/repositories.bzl
42
+ commit-message : Update pinned browser versions
43
+ committer :
Selenium CI Bot <[email protected] >
44
+ author :
Selenium CI Bot <[email protected] >
45
+ title : " Automated Browser Version Update"
46
+ body : " This is an automated pull request to update pinned browsers and drivers"
47
+ branch : " pinned-browser-updates"
You can’t perform that action at this time.
0 commit comments