Skip to content

Commit 72b7deb

Browse files
Create license.yml
1 parent 1cc4572 commit 72b7deb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/license.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Update license
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 1 1 *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- uses: FantasticFiasco/action-update-license-year@v3
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
commitTitle: 'The year in the LICENSE file has been updated'
19+
prTitle: 'The year in the LICENSE file has been updated'
20+
- name: Merge PR
21+
if: steps.license.outputs.pullRequestNumber != ''
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: gh pr merge --merge --delete-branch ${{ steps.license.outputs.pullRequestNumber }}

0 commit comments

Comments
 (0)