Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin gha2 #53

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ jobs:
run: sudo safaridriver --enable
- name: Run Bazel
run: ${{ inputs.run }}
- name: Echo Git Status
run: git status
- name: Start SSH session
if: failure() && runner.debug == '1'
uses: mxschmitt/action-tmate@v3
Expand All @@ -140,3 +142,12 @@ jobs:
title: "Nightly"
prerelease: true
files: ${{ inputs.nightly-release-files }}
- name: Save changes
run: |
git diff > changes.patch
- name: "Upload changes"
uses: actions/upload-artifact@v3
with:
name: patch-file
path: changes.patch
retention-days: 6
48 changes: 48 additions & 0 deletions .github/workflows/pin-browsers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Pin Browsers
on:
schedule:
- cron: 10 0 * * *
workflow_dispatch:
# TODO remove this before merging to trunk
pull_request:

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:
runs-on: ubuntu-latest
needs: update
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download patch
uses: actions/download-artifact@v2
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 <[email protected]>
author: Selenium CI Bot <[email protected]>
title: "Automated Browser Version Update"
body: "This is an automated pull request to update pinned browsers and drivers"
branch: "pinned-browser-updates"
Loading