Skip to content

Instantly share code, notes, and snippets.

@ai
Created September 11, 2022 20:56
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ai/14b7c0990a2ea7dc4e5f75da2ab9c0cd to your computer and use it in GitHub Desktop.
Save ai/14b7c0990a2ea7dc4e5f75da2ab9c0cd to your computer and use it in GitHub Desktop.
name: Update target browsers
on:
schedule:
- cron: "0 2 1 * *"
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 "action@github.com"
git config --global user.name "GitHub Action"
- name: Check Browserslist database
uses: c2corg/browserslist-update-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: browserslist-update
commit_message: Update Browserslist DB
title: Update Browserslist DB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment