diff options
| author | Masaya Suzuki <15100604+massongit@users.noreply.github.com> | 2023-01-16 06:36:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-16 06:36:53 +0900 |
| commit | ae6af6aefd49181f7d73eb23313da1b1aa7d343a (patch) | |
| tree | ee197b9b6e03cc3fb48248dbf1659066e01ea6de /.github/workflows | |
| parent | New Crowdin updates (#9589) (diff) | |
| download | sharkey-ae6af6aefd49181f7d73eb23313da1b1aa7d343a.tar.gz sharkey-ae6af6aefd49181f7d73eb23313da1b1aa7d343a.tar.bz2 sharkey-ae6af6aefd49181f7d73eb23313da1b1aa7d343a.zip | |
Copyrightの年が今年になっているかをチェックするCI追加 (#9580)
* Copyrightの年が今年になっているかをチェックするCI追加
* PRでは動作しないようにする
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/check_copyright_year.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/check_copyright_year.yml b/.github/workflows/check_copyright_year.yml new file mode 100644 index 0000000000..99799672f2 --- /dev/null +++ b/.github/workflows/check_copyright_year.yml @@ -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
|