| 1 | name: Update Browserslist |
| 2 | on: |
| 3 | schedule: |
| 4 | - cron: '0 7 * * 1' |
| 5 | workflow_dispatch: |
| 6 | |
| 7 | jobs: |
| 8 | update-browser-list: |
| 9 | runs-on: ubuntu-latest |
| 10 | steps: |
| 11 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 12 | - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 |
| 13 | - run: npx update-browserslist-db@latest |
| 14 | - name: Commit changes |
| 15 | uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4 |
| 16 | with: |
| 17 | author_name: ${{ github.actor }} |
| 18 | author_email: ${{ github.actor }}@users.noreply.github.com |
| 19 | message: 'chore: update browsers list' |
| 20 | push: false |
| 21 | - name: Create Pull Request |
| 22 | uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9 |
| 23 | with: |
| 24 | branch: update-browserslist |
| 25 | title: Update Browserslist |
| 26 | |