From 09f6c06f69acd8eb2de17f47a207d36c38d6ee58 Mon Sep 17 00:00:00 2001 From: LanikSJ Date: Wed, 1 Jan 2025 05:37:43 -0800 Subject: [PATCH] Update License Action --- .github/workflows/update-license.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/update-license.yml b/.github/workflows/update-license.yml index a04735f..5899d00 100644 --- a/.github/workflows/update-license.yml +++ b/.github/workflows/update-license.yml @@ -3,30 +3,22 @@ name: Update License on: schedule: - cron: '0 10 1 1 *' # 10:00 AM on January 1 - -permissions: - issues: write - pull-requests: write - -concurrency: - group: update-license - cancel-in-progress: ${{ github.event_name != 'issue_comment' }} + workflow_dispatch: jobs: - update-license-year: + action-update-license-year: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Update License Year - uses: FantasticFiasco/action-update-license-year@v3 + - uses: FantasticFiasco/action-update-license-year@v3 with: token: ${{ secrets.GITHUB_TOKEN }} commitAuthorEmail: noreply@github.com - - name: Merge Pull Request + id: license + - name: Merge PR + if: steps.license.outputs.pullRequestNumber != '' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr merge --squash --delete-branch + run: gh pr merge --squash --delete-branch ${{ steps.license.outputs.pullRequestNumber }} \ No newline at end of file