Change how the write works
This commit is contained in:
parent
f6d914d85f
commit
5d625f9aa0
2
.github/workflows/copyright-check.yml
vendored
2
.github/workflows/copyright-check.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user