From d5f90fdbcb68f20339c29677ccaac665cb53749e Mon Sep 17 00:00:00 2001 From: Vishnu Challa Date: Thu, 18 Jul 2024 08:01:44 -0400 Subject: [PATCH] Updating actions to get triggered only on main branch Signed-off-by: Vishnu Challa --- .github/workflows/build-push.yaml | 5 ++++- .github/workflows/release-build-push.yaml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push.yaml b/.github/workflows/build-push.yaml index e40cd286..07ed40f5 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/build-push.yaml @@ -1,5 +1,8 @@ name: Build and Push Image -on: [ push ] +on: + push: + branches: + - main jobs: build: diff --git a/.github/workflows/release-build-push.yaml b/.github/workflows/release-build-push.yaml index 5b52b48e..294034bb 100644 --- a/.github/workflows/release-build-push.yaml +++ b/.github/workflows/release-build-push.yaml @@ -3,7 +3,9 @@ name: Release Build and Push Image on: push: tags: - - "*" + - "*" + branches: + - main jobs: build: