From be7f2f6b3e6979b689ec809759e93269bb2e0e65 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov <zimniy@cyberbrain.pw> Date: Tue, 26 Mar 2024 11:29:51 +0300 Subject: [PATCH] Update Browserslist database (#25) Signed-off-by: Dmitriy Safronov <zimniy@cyberbrain.pw> --- .github/workflows/update-browserlist-db.yaml | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update-browserlist-db.yaml diff --git a/.github/workflows/update-browserlist-db.yaml b/.github/workflows/update-browserlist-db.yaml new file mode 100644 index 0000000..045d3d5 --- /dev/null +++ b/.github/workflows/update-browserlist-db.yaml @@ -0,0 +1,33 @@ +name: Update Browserslist database + +"on": + workflow_dispatch: + schedule: + - cron: '0 12 * * *' + +permissions: + contents: write + pull-requests: write + +jobs: + update-browserslist-database: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Configure git + run: | + git config --global user.email "action@github.com" + git config --global user.name "GitHub Action" + - name: Update Browserslist database and create PR if applies + uses: c2corg/browserslist-update-action@v2 + with: + github_token: ${{ secrets.PAT }} + branch: browserslist-update + base_branch: main + 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: 'chores, dependencies' -- GitLab