Update Browserslist DB #8
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 2 1 */2 *" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
browserslist-update-action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
- name: Update Browserslist database and create PR if applies | |
uses: c2corg/browserslist-update-action@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: browserslist-update | |
base_branch: main | |
commit_message: 'build: update Browserslist db' | |
title: 'build: update Browserslist db' | |
body: Auto-generated by [browserslist-update-action](https://github.com/c2corg/browserslist-update-action/). Caniuse database has been updated. Review changes, merge this PR, and be merry. | |
labels: 'dependencies, javascript' |