summaryrefslogtreecommitdiff
path: root/.github/workflows/check_copyright_year.yml
blob: fb04cf1b005a22254378e2d8c86fa49b8dcc1af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Check copyright year

on:
  push:
    branches:
      - master
      - develop

jobs:
  check_copyright_year:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4.1.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