1

Testing copyright checks

This commit is contained in:
Evan Pratten 2023-11-13 11:26:21 -05:00
parent 21d2530145
commit f6d914d85f
2 changed files with 22 additions and 1 deletions

21
.github/workflows/copyright-check.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Copyright Check
on:
schedule:
- cron: "0 0 1 1 *"
push:
jobs:
check-copyright:
runs-on: ubuntu-latest
steps:
- name: Fetch current year
run: |
YEAR=$(date +%Y)
echo "Current year is $YEAR"
- name: Update LICENSE file
run: |
sed -i "s/$(date +%Y)/$YEAR/g" LICENSE
- name: Check if LICENSE file has changed
run: |
git diff --quiet || git commit -am "Update LICENSE year to $YEAR" && git push

View File

@ -1 +1 @@
Copyright (c) 2023, Evan Pratten, All rights reserved.
Copyright (c) 2022, Evan Pratten, All rights reserved.