From a4db17333328cda71b26cf6a4793e824b64d5fb2 Mon Sep 17 00:00:00 2001 From: Che Date: Wed, 6 May 2026 22:58:41 +0100 Subject: [PATCH 1/2] add conditional deploy for the container app. --- .github/workflows/ci-cd.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index fbf5546..847d8c3 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -124,8 +124,16 @@ jobs: build-and-deploy-dotnet: runs-on: ubuntu-latest needs: + - changes - test-dotnet - terraform-plan-apply + if: >- + ${{ + always() && + (needs.changes.outputs.dotnet == 'true' || needs.changes.outputs.terraform == 'true') && + needs.test-dotnet.result == 'success' && + (needs.terraform-plan-apply.result == 'success' || needs.terraform-plan-apply.result == 'skipped') + }} permissions: id-token: write contents: read From c07e9d38c6ca382c299d4c7f65c0306cb16f2032 Mon Sep 17 00:00:00 2001 From: Che Date: Wed, 6 May 2026 22:59:13 +0100 Subject: [PATCH 2/2] add new line to trigger redeployment. --- src/dotnet/TheSexy6BotWorker/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dotnet/TheSexy6BotWorker/Program.cs b/src/dotnet/TheSexy6BotWorker/Program.cs index 3705176..6337cc8 100644 --- a/src/dotnet/TheSexy6BotWorker/Program.cs +++ b/src/dotnet/TheSexy6BotWorker/Program.cs @@ -19,4 +19,4 @@ public static void Main(string[] args) host.Run(); } } -} \ No newline at end of file +}