-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.45 KB
/
update-copyright-year.yaml
File metadata and controls
38 lines (33 loc) · 1.45 KB
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
34
35
36
37
38
# Adapted from Epiverse packages: https://github.com/epiverse-trace
name: Update copyright year(s) in license file
on:
workflow_dispatch:
schedule:
- cron: '0 3 1 1 *'
permissions:
contents: write
pull-requests: write
jobs:
run:
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 }}
path: |
LICENSE.md
prBody: >
This PR updates the copyright license for this new year! If you're reading this while you're celebrating, enjoy! Don't worry about this one :blush:

- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: |
LICENSE
prBody: >
This PR updates the copyright license for this new year! If you're reading this while you're celebrating, enjoy! Don't worry about this one :blush:

transform: (?<=YEAR:\s)(?<from>\d{4})?-?(\d{4})?