From 4da6986427b02191b4bacf3fc1dadc0494eb92fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Wed, 11 Oct 2023 14:03:14 -0400 Subject: [PATCH] add a GitHub Action to automatically update the license every year (#14) --- .github/workflows/update-license.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update-license.yml 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}}"