mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
chore: automated copyright update with GitHub Actions (#6195)
This commit is contained in:
parent
879258d62b
commit
69ab6a07de
1 changed files with 46 additions and 0 deletions
46
.github/workflows/update-copyright.yml
vendored
Normal file
46
.github/workflows/update-copyright.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: Update copyright year(s)
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 1 1 *' # 03:00 AM on January 1
|
||||
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
||||
|
||||
jobs:
|
||||
update-copyright-years:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: FantasticFiasco/action-update-license-year@v3
|
||||
with:
|
||||
prTitle: 'chore: update copyright years'
|
||||
commitTitle: 'chore: update copyright year in COPYING'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: COPYING
|
||||
transform: (?<=Copyright )(?<from>\d{4})?-?(\d{4})?
|
||||
- uses: FantasticFiasco/action-update-license-year@v3
|
||||
with:
|
||||
commitTitle: 'chore: update copyright year in user-facing files (1)'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: |
|
||||
gtk/Application.cc
|
||||
qt/LicenseDialog.ui
|
||||
transform: (?<=Copyright )(?<from>\d{4})?-?(\d{4})
|
||||
- uses: FantasticFiasco/action-update-license-year@v3
|
||||
with:
|
||||
commitTitle: 'chore: update copyright year in user-facing files (2)'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: |
|
||||
macosx/Info.plist
|
||||
macosx/Info.plist.in
|
||||
macosx/*/InfoPlist.strings
|
||||
macosx/QuickLookPlugin/Info.plist.in
|
||||
macosx/QuickLookPlugin/QuickLookPlugin-Info.plist
|
||||
transform: (?<=Copyright © )(?<from>\d{4})?-?(\d{4})
|
||||
- uses: FantasticFiasco/action-update-license-year@v3
|
||||
with:
|
||||
commitTitle: 'chore: update copyright year in cmake/transmission.rc.in'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path: cmake/Transmission.rc.in
|
||||
transform: (?<from>\d{4})?-?(\d{4})(?= Transmission Project)
|
Loading…
Reference in a new issue