-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 870 Bytes
/
update-license.yml
File metadata and controls
33 lines (27 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update copyright year in license file
on:
schedule:
- cron: '0 6 1 1 *'
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@d837fc83ecb71196807bdf3854208f556e66f6ed # 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 }}