Skip to content

Update the pinned browser version #10969

Update the pinned browser version

Update the pinned browser version #10969

# 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 hourly at xx:30.
- cron: '30 * * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
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'
push-to-fork: browser-automation-bot/chromium-bidi