Skip to content

Commit

Permalink
feat: add automation of browserslist update (#787)
Browse files Browse the repository at this point in the history
* feat: add automation of browserslist update 

fixes #691

* fix: use electron instead of chrome
  • Loading branch information
2xAA authored Nov 12, 2022
1 parent 9146c1e commit 16f33a6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
last 1 Chrome version
electron >= 11.2.0
32 changes: 32 additions & 0 deletions .github/workflows/browserslist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: next
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/)
labels: 'chores, github action'

0 comments on commit 16f33a6

Please sign in to comment.