From ace45cb7ee44afa74c27b918ea0a8cc66bd87e16 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatt Date: Wed, 13 Sep 2023 16:13:24 +0530 Subject: [PATCH] Push trigger tests only for release branches Signed-off-by: Utkarsh Bhatt --- .github/workflows/build_and_test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 1f48da85..cf73b647 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -1,9 +1,14 @@ name: Canary image testing on: + # Run test on each "PUSH" to release branches only. push: + branches: + - 'main' + - 'stable/*' + # Run test on all PRs. pull_request: - # Allows you to run this workflow manually from the Actions tab + # Allows you to run this workflow manually for any internal branch from the Actions tab. workflow_dispatch: defaults: