Workflow file for this run
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 Database | |
on: | |
# TODO: TESTING REMOVE THIS BEFORE MERGING | |
push: | |
branches: | |
- browserlist-update-db-action | |
schedule: | |
# run on the 1st of every month | |
- cron: '15 3 1 * *' | |
workflow_call: | |
jobs: | |
update-browserlist-db: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Browserlist Database | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
npx update-browserslist-db@latest | |
cd packages/react && npx update-browserslist-db@latest | |
cd packages/styles && npx update-browserslist-db@latest | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
add-paths: | | |
yarn.lock | |
packages/*/yarn.lock | |
commit-message: 'chore: update browserlist database' | |
branch: update-browserlist-database | |
base: develop | |
title: 'chore: update browserlist database' | |
body: | | |
This patch updates any outdated browserlist databases. | |
This PR was opened automatically by a robot :robot: :tada: |