Skip to content

Commit

Permalink
Update License Action (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
LanikSJ authored Jan 1, 2025
1 parent 2cf663b commit 1d63bc5
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
- 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 }}

0 comments on commit 1d63bc5

Please sign in to comment.