We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cc4572 commit 72b7debCopy full SHA for 72b7deb
.github/workflows/license.yml
@@ -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
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