1

Change how the write works

This commit is contained in:
Evan Pratten 2023-11-13 11:28:21 -05:00
parent f6d914d85f
commit 5d625f9aa0
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ jobs:
echo "Current year is $YEAR" echo "Current year is $YEAR"
- name: Update LICENSE file - name: Update LICENSE file
run: | run: |
sed -i "s/$(date +%Y)/$YEAR/g" LICENSE echo "Copyright (c) ${YEAR}, Evan Pratten, All rights reserved." > LICENSE
- name: Check if LICENSE file has changed - name: Check if LICENSE file has changed
run: | run: |
git diff --quiet || git commit -am "Update LICENSE year to $YEAR" && git push git diff --quiet || git commit -am "Update LICENSE year to $YEAR" && git push