Update browserslist db #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Update browserslist db" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: npm | |
- name: Run update-browserslist-db | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
npx update-browserslist-db@latest | |
- name: create pull request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
base: main | |
branch: update-browserslist-db | |
commit-message: "build: update browserslist db" | |
title: "build: update browserslist db" | |
body: "This PR was automatically generated by the update-browserslist-db GitHub action" | |
token: ${{ secrets.ADMIN_TOKEN }} | |
labels: "chore" |