diff --git a/.github/workflows/browserslist-update.yml b/.github/workflows/browserslist-update.yml index 84b0dcf6db785..9d07dba8fc762 100644 --- a/.github/workflows/browserslist-update.yml +++ b/.github/workflows/browserslist-update.yml @@ -2,7 +2,7 @@ name: Update Browserslist database on: schedule: - - cron: '0 0 5,15,25 * *' + - cron: '0 12 * * MON' workflow_dispatch: permissions: @@ -17,17 +17,24 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Configure git run: | - # Setup for committing using built-in token. See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.email "action@github.com" + git config --global user.name "Browserslist Update Action" + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.12.1 + - name: Update Browserslist database and create PR if applies uses: c2corg/browserslist-update-action@v2 with: github_token: ${{ secrets.GITHUB_TOKEN }} - base_branch: master 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: 'dependencies, automerge'