Skip to content

Update browserslist db #97

Update browserslist db

Update browserslist db #97

name: Update browserslist db
on:
workflow_dispatch:
schedule:
- cron: '0 12 1 * *'
permissions:
contents: read
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: googleforcreators-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: googleforcreators-bot
jobs:
update-browserslist-db:
name: Update browserslist db
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
- name: Setup Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version-file: '.nvmrc'
cache: npm
- name: Update db
run: npx browserslist@latest --update-db
- name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
commit-message: Update browserslist db
title: Update browserslist db
body: Updates `caniuse-lite` to use the latest browser’s versions and statistics.
branch: update/browserslist-db
labels: Dependencies