Skip to content

Update browserslist db #105

Update browserslist db

Update browserslist db #105

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@0d381219ddf674d61a7572ddd19d7941e271515c
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version-file: '.nvmrc'
cache: npm
- name: Update db
run: npx update-browserslist-db@latest
- name: Create Pull Request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c
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