only run copyright year check in pull requests (#4871)

On `unstable`, the `git diff` doesn't work, so only check during PR.
This commit is contained in:
Etan Kissling 2023-04-27 18:46:09 +02:00 committed by GitHub
parent 351f043a61
commit 40eb7477ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ jobs:
# submodules: true
- name: Check copyright year (Linux)
if: runner.os == 'Linux'
if: github.event_name == 'pull_request' && runner.os == 'Linux'
run: |
excluded_extensions="md|png"