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:
parent
351f043a61
commit
40eb7477ae
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue