diff --git a/.github/workflows/update-license.yml b/.github/workflows/update-license.yml new file mode 100644 index 0000000..b6b7276 --- /dev/null +++ b/.github/workflows/update-license.yml @@ -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/checkout@v3.5.3 + + - uses: FantasticFiasco/action-update-license-year@v3.0.2 + 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}}"