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 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 +}