-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] create workflow to PR changes to browser versions (#13466)
- Loading branch information
1 parent
c5fb5a5
commit c618cac
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Pin Browsers | ||
on: | ||
schedule: | ||
- cron: 10 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
name: Update Pinned Browsers | ||
uses: ./.github/workflows/bazel.yml | ||
with: | ||
name: Pin Browsers | ||
cache-key: pin-browsers | ||
run: bazel run //scripts:pinned_browsers | ||
|
||
pull-request: | ||
if: github.repository_owner == 'seleniumhq' | ||
runs-on: ubuntu-latest | ||
needs: update | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Download patch | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: patch-file | ||
- name: Apply Patch | ||
run: | | ||
git apply changes.patch | ||
rm changes.patch | ||
- name: Check Changes | ||
run: | | ||
if [[ -n $(git status --porcelain common/repositories.bzl) ]]; then | ||
echo "CHANGES_FOUND=true" >> $GITHUB_ENV | ||
fi | ||
- name: Create Pull Request | ||
if: env.CHANGES_FOUND == 'true' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.SELENIUM_CI_TOKEN }} | ||
add-paths: common/repositories.bzl | ||
commit-message: Update pinned browser versions | ||
committer: Selenium CI Bot <selenium-ci@users.noreply.github.com> | ||
author: Selenium CI Bot <selenium-ci@users.noreply.github.com> | ||
title: "Automated Browser Version Update" | ||
body: "This is an automated pull request to update pinned browsers and drivers" | ||
branch: "pinned-browser-updates" |