2023-02-13 20:13:34 -08:00
|
|
|
name: Check copyright year
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check_copyright_year:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-08-12 04:17:17 -07:00
|
|
|
- uses: actions/checkout@v3.5.3
|
2023-02-13 20:13:34 -08:00
|
|
|
- run: |
|
|
|
|
if [ "$(grep Copyright COPYING | sed -e 's/.*2014-\([0-9]*\) .*/\1/g')" -ne "$(date +%Y)" ]; then
|
|
|
|
echo "Please change copyright year!"
|
|
|
|
exit 1
|
|
|
|
fi
|