diff --git a/.github/workflows/browserslist-update-db.yml b/.github/workflows/browserslist-update-db.yml new file mode 100644 index 00000000000..c60dd1f63f3 --- /dev/null +++ b/.github/workflows/browserslist-update-db.yml @@ -0,0 +1,30 @@ +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: | + # Setup for commiting 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" + - 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: develop + labels: 'javascript, Type: Maintenance'