mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
# This workflow will update the pinned browsers
|
|
|
|
name: 'Update the pinned browsers'
|
|
|
|
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
|
|
uses: actions/checkout@v3.3.0
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3.5.1
|
|
with:
|
|
cache: npm
|
|
node-version: lts/*
|
|
- uses: google/wireit@setup-github-actions-caching/v1
|
|
- 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: Format files if needed
|
|
run: npm run format
|
|
- name: Update package-lock.json
|
|
run: npm install --ignore-scripts
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
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>
|
|
commit-message: 'feat(chrome): roll to Chrome ${{ steps.update.outputs.version }} (r${{ steps.update.outputs.revision }} )'
|
|
title: 'feat(chrome): roll to Chrome ${{ steps.update.outputs.version }} (r${{ steps.update.outputs.revision }} )'
|
|
body: 'Automatically generated by https://github.com/puppeteer/puppeteer/blob/main/.github/workflows/update-browser-pins.yml'
|
|
labels: dependencies
|