2023-06-01 08:13:42 +00:00
|
|
|
# This workflow will update the pinned browsers
|
|
|
|
|
|
|
|
name: 'Update the pinned browsers'
|
|
|
|
|
2023-06-02 12:19:22 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2023-06-01 08:13:42 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Run everyday at: https://crontab.guru/#0_6_*_*_*.
|
|
|
|
- cron: '0 6 * * *'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2023-06-26 09:54:28 +00:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2023-06-01 08:13:42 +00:00
|
|
|
- name: Set up Node.js
|
2023-06-02 09:52:21 +00:00
|
|
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2023-06-01 08:13:42 +00:00
|
|
|
with:
|
|
|
|
cache: npm
|
|
|
|
node-version: lts/*
|
2023-06-02 09:52:21 +00:00
|
|
|
- uses: google/wireit@f3a3c79c553122e2fe5829eeac7d815326502903 # setup-github-actions-caching/v1
|
2023-06-01 08:13:42 +00:00
|
|
|
- name: Install npm dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build Puppeteer
|
|
|
|
run: npm run build -w puppeteer
|
|
|
|
- name: Update Chrome to latest stable version
|
|
|
|
id: update
|
|
|
|
run: |
|
|
|
|
node --experimental-fetch tools/update_chrome_revision.mjs
|
|
|
|
- name: Create Pull Request
|
2023-06-02 13:37:48 +00:00
|
|
|
if: ${{ steps.update.outputs.commit }}
|
2023-06-02 09:52:21 +00:00
|
|
|
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1
|
2023-06-01 08:13:42 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
|
|
branch: browser-automation-bot/update-browser-version
|
|
|
|
delete-branch: true
|
|
|
|
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
|
|
author: Browser Automation Bot <browser-automation-bot@google.com>
|
2023-06-02 13:37:48 +00:00
|
|
|
commit-message: ${{ steps.update.outputs.commit }}
|
|
|
|
title: ${{ steps.update.outputs.commit }}
|
2023-06-01 08:13:42 +00:00
|
|
|
body: 'Automatically generated by https://github.com/puppeteer/puppeteer/blob/main/.github/workflows/update-browser-pins.yml'
|
|
|
|
labels: dependencies
|