Skip to content

Update License

Update License #2

name: Update License
on:
schedule:
- cron: '0 10 1 1 *' # 10:00 AM on January 1
workflow_dispatch:
jobs:
action-update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commitAuthorEmail: noreply@github.com
id: license
- name: Merge PR
if: steps.license.outputs.pullRequestNumber != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --squash --delete-branch ${{ steps.license.outputs.pullRequestNumber }}