mirror of
https://github.com/gotson/komga.git
synced 2025-01-08 11:47:47 +08:00
ci: add browserlist update action
This commit is contained in:
parent
6482b3496a
commit
b93459a56f
35
.github/workflows/browserlist-update.yml
vendored
Normal file
35
.github/workflows/browserlist-update.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: Update Browserslist database
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 2 1 * *'
|
||||
|
||||
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: master
|
||||
directory: ./komga-webui
|
||||
commit_message: 'build(webui): update Browserslist db'
|
||||
title: 'Browserslist database update'
|
||||
body: Auto-generated by [browserslist-update-action](https://github.com/c2corg/browserslist-update-action/)
|
||||
labels: 'github_actions'
|
Loading…
Reference in New Issue
Block a user