Skip to content

Instantly share code, notes, and snippets.

@isaacbowen
Created November 3, 2023 21:17
Show Gist options
  • Save isaacbowen/4ed1cf0ea46375d51255a6a8d5714269 to your computer and use it in GitHub Desktop.
Save isaacbowen/4ed1cf0ea46375d51255a6a8d5714269 to your computer and use it in GitHub Desktop.
name: Monthly maintenance issues
on:
schedule:
- cron: 0 0 1 * *
jobs:
create_issues:
name: Update caniuse-lite
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create issue
uses: imjohnbo/issue-bot@v3
with:
title: Update browserslist database
labels: maintenance, monthly, caniuse-lite-maintenance
body: |
## Instructions
1. Run `npx update-browserslist-db@latest`
2. Commit/push/pr/merge
## Background
https://github.com/browserslist/update-db#why-you-need-to-call-it-regularly
When things are out of date, you'll start seeing warnings during builds, like this one from a *very* out of date project:
```
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
```
## Can this be better?
I'd love to have Renovate handle this, but as of this writing that's not a thing (https://github.com/renovatebot/renovate/issues/8615). -Isaac
pinned: false
close-previous: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment