generated from dailydevops/template-dotnet
-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 871 Bytes
/
update-license.yml
File metadata and controls
33 lines (27 loc) · 871 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: write
pull-requests: write
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@f180e962fa988db222d8f03ef4636750312d1b3d # 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 }}