From 61275041b1cc4b7c53c5b54c9f6a28c1ff120788 Mon Sep 17 00:00:00 2001 From: Nick Le Large Date: Tue, 12 Nov 2024 11:31:40 +0100 Subject: [PATCH] Set trigger to only run on merge to main --- .github/workflows/build-and-push-docker.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push-docker.yaml b/.github/workflows/build-and-push-docker.yaml index 6cf27166..961b5b1c 100644 --- a/.github/workflows/build-and-push-docker.yaml +++ b/.github/workflows/build-and-push-docker.yaml @@ -1,12 +1,15 @@ name: Build and Push Docker Images on: - push: + pull_request: + types: + - closed branches: - main jobs: build-and-push-image: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: