From 4e70a8744431b4934986c14dd47a182be2a3a09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= <3283596+samtrion@users.noreply.github.com> Date: Fri, 4 Aug 2023 01:07:09 +0200 Subject: [PATCH] ci: Added `Update LICENSE` pipeline [skip ci] --- .github/workflows/update-license.yml | 29 ++++++++++++++++++++++++++++ LICENSE | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) 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..6d79163 --- /dev/null +++ b/.github/workflows/update-license.yml @@ -0,0 +1,29 @@ +name: Update copyright year in license file + +on: + schedule: + - cron: '0 6 1 1 *' + workflow_dispatch: + +jobs: + run: + runs-on: ubuntu-latest + steps: + + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: FantasticFiasco/action-update-license-year@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + prTitle: 'chore: Updated LICENSE' + commitTitle: 'chore: Updated LICENSE [skip ci]' + id: license + + - name: Merge PR + if: steps.license.outputs.pullRequestNumber != '' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr merge --squash --admin --delete-branch ${{ steps.license.outputs.pullRequestNumber }} diff --git a/LICENSE b/LICENSE index 0715257..f8a38ce 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 .NET Evolve +Copyright (c) 2023 Daily DevOps & .NET Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal