👷(ci) fix ci issue with changelog on main

check-changelog should only runs on PR
This commit is contained in:
Jacques ROUSSEL
2024-01-05 18:06:09 +01:00
committed by Samuel Paccoud
parent 7713225fc8
commit e4b0ca86e5

View File

@@ -34,7 +34,9 @@ jobs:
check-changelog:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'noChangeLog') == false
if: |
contains(github.event.pull_request.labels.*.name, 'noChangeLog') == false &&
github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v2