mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
c7936f0888
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
78 lines
3.2 KiB
YAML
78 lines
3.2 KiB
YAML
# This workflow will update the pinned browsers
|
|
|
|
name: 'Update the pinned browsers'
|
|
|
|
permissions: read-all
|
|
|
|
on:
|
|
schedule:
|
|
# Run everyday at: https://crontab.guru/#0_6_*_*_*.
|
|
- cron: '0 6 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-chrome:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
with:
|
|
cache: npm
|
|
node-version-file: '.nvmrc'
|
|
- uses: google/wireit@4aad131006ea85c1e42af927534ebb13426dd730 # setup-github-actions-caching/v1.0.2
|
|
- 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 tools/update_chrome_revision.mjs
|
|
- name: Create Pull Request
|
|
if: ${{ steps.update.outputs.commit }}
|
|
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
|
|
with:
|
|
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
branch: browser-automation-bot/update-browser-version-chrome
|
|
delete-branch: true
|
|
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
author: Browser Automation Bot <browser-automation-bot@google.com>
|
|
commit-message: ${{ steps.update.outputs.commit }}
|
|
title: ${{ steps.update.outputs.commit }}
|
|
body: 'Automatically generated by https://github.com/puppeteer/puppeteer/blob/main/.github/workflows/update-browser-pins.yml'
|
|
labels: dependencies
|
|
update-firefox:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
with:
|
|
cache: npm
|
|
node-version-file: '.nvmrc'
|
|
- uses: google/wireit@4aad131006ea85c1e42af927534ebb13426dd730 # setup-github-actions-caching/v1.0.2
|
|
- name: Install npm dependencies
|
|
run: npm ci
|
|
- name: Build Puppeteer
|
|
run: npm run build:test -w @puppeteer/browsers
|
|
- name: Update Firefox to latest nightly version
|
|
id: update
|
|
run: |
|
|
node packages/browsers/tools/updateVersions.mjs
|
|
- name: Create Pull Request
|
|
if: ${{ steps.update.outputs.commit }}
|
|
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v6.0.2
|
|
with:
|
|
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
branch: browser-automation-bot/update-browser-version-firefox
|
|
delete-branch: true
|
|
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
author: Browser Automation Bot <browser-automation-bot@google.com>
|
|
commit-message: ${{ steps.update.outputs.commit }}
|
|
title: ${{ steps.update.outputs.commit }}
|
|
body: 'Automatically generated by https://github.com/puppeteer/puppeteer/blob/main/.github/workflows/update-browser-pins.yml'
|
|
labels: dependencies
|