Skip to content

Update the pinned browser version #11547

Update the pinned browser version

Update the pinned browser version #11547

# This workflow will update the version in .browser and open a PR
name: 'Update the pinned browser version'
# Declare default permissions as read only.
permissions: read-all
on:
schedule:
# Run every 12 hours
- cron: '0 */12 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Checkout `browser-automation-bot/update-browser-version` if exits
run: |
(git ls-remote --exit-code --heads origin refs/heads/browser-automation-bot/update-browser-version &&
git checkout browser-automation-bot/update-browser-version &&
git rebase main) || exit 0
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install and build npm dependencies
run: npm ci
- name: Update browser pin and devtools-protocol
id: update
run: node tools/update_chrome_revision.mjs
- name: Create Pull Request
if: ${{ steps.update.outputs.commit }}
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
branch: browser-automation-bot/update-browser-version
delete-branch: true
committer: Browser Automation Bot <[email protected]>
author: Browser Automation Bot <[email protected]>
commit-message: ${{ steps.update.outputs.commit }}
title: ${{ steps.update.outputs.commit }}
body: |
Automatically generated by https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/.github/workflows/update-browser-version.yml
This requires some manual work:
1. Review and approve the PR.
1. Approve and run workflows.
1. Update WPT or e2e expectations and file issues if there was regression.
1. Merge the PR.
push-to-fork: browser-automation-bot/chromium-bidi