Skip to content

Commit d3986b0

Browse files
Update CVE checks workflow to trigger on changes in 'infra/' directory
1 parent 359575d commit d3986b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cve_checks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: "Infra: CVE checks"
2+
23
on:
34
pull_request:
45
types: [ "opened", "reopened", "synchronize" ]
6+
paths:
7+
- 'infra/**' # Run only when files in 'infra/' change
58
push:
69
branches: [ "main" ]
10+
paths:
11+
- 'infra/**'
712
workflow_dispatch:
813
schedule:
914
# * is a special character in YAML so you have to quote this string
@@ -76,7 +81,7 @@ jobs:
7681

7782
notify:
7883
needs: check-cves
79-
if: ${{ always() && needs.build-and-test.result == 'failure' && github.event_name == 'schedule' }}
84+
if: ${{ always() && needs.check-cves.result == 'failure' && github.event_name == 'schedule' }}
8085
uses: ./.github/workflows/infra_discord_hook.yml
8186
with:
8287
message: "Attention! CVE checks run failed! Please fix them CVEs :("

0 commit comments

Comments
 (0)