Skip to content

ci: add action to update the browserslist database on a monthly basis #1

ci: add action to update the browserslist database on a monthly basis

ci: add action to update the browserslist database on a monthly basis #1

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:
- uses: actions/checkout@v4

Check failure on line 15 in .github/workflows/update-browserslist-db.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-browserslist-db.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: Update Browserlist Database
run: |
git config user.name github-actions
git config user.email [email protected]
npx update-browserslist-db@latest
npm exec --prefix packages/react update-browserslist-db@latest
npm exec --prefix packages/styles update-browserslist-db@latest
git commit -m 'chore: update browserlist database'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6