-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a GitHub Action to automatically update the license every year (#14)
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Update copyright years | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 1 1 *' # Midnight of December 31st (GitHub Action are using UTC) | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-license-year: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/[email protected] | ||
|
||
- uses: FantasticFiasco/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commitAuthorName: 'kube1st' | ||
commitAuthorEmail: ${{ secrets.GPG_EMAIL }} | ||
gpgPrivateKey: ${{ secrets.GPG_KEY }} | ||
gpgPassphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
commitTitle: "chore: update license years with {{currentYear}}" | ||
prTitle: "chore: update license years with {{currentYear}}" |