misc: add update copyright years workflow

ref: #456
This commit is contained in:
genteure 2023-06-17 20:48:07 +08:00
parent 52c2d4aef0
commit 9d02bb140d

View File

@ -0,0 +1,21 @@
name: Update copyright years
on:
workflow_dispatch:
schedule:
- cron: '12 0 1 1 *' # Run on the first day of every year at 00:12 UTC, or 08:12 UTC+8
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: |
Directory.Build.props
BililiveRecorder.WPF/AssemblyInfo.cs
transform: 'Copyright © (?<from>\d{4}) - (\d{4})'