Skip to content

Commit

Permalink
Add Browserslist update db Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed Jul 18, 2023
1 parent e097388 commit 37e8f17
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/browsers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update Browserslist database

on:
schedule:
- cron: '0 2 1,15 * *'

permissions:
contents: write
pull-requests: write

jobs:
update-browserslist-database:
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: 'Update Browserslist db'
title: 'Update Browserslist db'

0 comments on commit 37e8f17

Please sign in to comment.