Copyrightの年が今年になっているかをチェックするCI追加 (#9580)
* Copyrightの年が今年になっているかをチェックするCI追加 * PRでは動作しないようにする
This commit is contained in:
parent
a0ae9f7593
commit
ae6af6aefd
1 changed files with 18 additions and 0 deletions
18
.github/workflows/check_copyright_year.yml
vendored
Normal file
18
.github/workflows/check_copyright_year.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Check copyright year
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check_copyright_year:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.2.0
|
||||||
|
- 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
|
Loading…
Reference in a new issue