From a921e18ea9127b2c7188ee5eca25327d85c11a73 Mon Sep 17 00:00:00 2001 From: Gino Canessa Date: Thu, 29 Aug 2024 17:18:33 -0500 Subject: [PATCH] Only build artifacts when tests complete AND on main branch. --- .github/workflows/ghcr-docker.yml | 2 ++ .github/workflows/nuget-tool.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ghcr-docker.yml b/.github/workflows/ghcr-docker.yml index 9f76ddb..26a25a4 100644 --- a/.github/workflows/ghcr-docker.yml +++ b/.github/workflows/ghcr-docker.yml @@ -5,6 +5,8 @@ on: workflow_run: workflows: ['Tests'] types: [completed] + branches: + - main env: REGISTRY: ghcr.io diff --git a/.github/workflows/nuget-tool.yml b/.github/workflows/nuget-tool.yml index 49d5393..961cefa 100644 --- a/.github/workflows/nuget-tool.yml +++ b/.github/workflows/nuget-tool.yml @@ -5,6 +5,8 @@ on: workflow_run: workflows: ['Tests'] types: [completed] + branches: + - main jobs: build: