From a7d7548b7321771d84c64b538fd13bddd605b42a Mon Sep 17 00:00:00 2001 From: Kalibh Halford Date: Fri, 13 Sep 2024 11:27:52 +0100 Subject: [PATCH] BUG: Workflow runs only on certain changes The workflow was running on every PR which is wrong. It should run only when files in cloud_chatops dir are changed or the workflow itself --- .github/workflows/cloud_chatops.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloud_chatops.yaml b/.github/workflows/cloud_chatops.yaml index 43c44c67..499dddf4 100644 --- a/.github/workflows/cloud_chatops.yaml +++ b/.github/workflows/cloud_chatops.yaml @@ -1,9 +1,13 @@ name: CI/CD Cloud ChatOps on: - pull_request: + push: branches: - master + pull_request: + paths: + - "cloud_chatops/**" + - ".github/workflows/cloud_chatops.yaml" jobs: Pylint-Tests-Codecov: