From 6855742bcf298c2b5c2edd47935e6d19a39aec4e Mon Sep 17 00:00:00 2001 From: Evan Lobeto Date: Fri, 6 Dec 2024 16:14:25 -0700 Subject: [PATCH] better alerting? --- .github/workflows/template-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/template-deploy.yaml b/.github/workflows/template-deploy.yaml index ac87651..79369d9 100644 --- a/.github/workflows/template-deploy.yaml +++ b/.github/workflows/template-deploy.yaml @@ -71,7 +71,7 @@ jobs: env=$ENV region=us-east-1 ns=$NS image_tag=$IMAGE_TAG helmfile -f stable/$SERVICE.yaml sync - name: Post failed status dev - if: ${{ always() && steps.Helm-sync.outcome == 'failed' && github.actor != 'renovate[bot]' && inputs.env == 'dev'}} + if: ${{ always() && steps.Helm-sync.outcome != 'success' && github.actor != 'renovate[bot]' && inputs.env == 'dev'}} uses: act10ns/slack@v2.1.0 with: status: ${{ steps.Helm-sync.outcome }} @@ -81,7 +81,7 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - name: Post failed status prod - if: ${{ always() && steps.Helm-sync.outcome == 'failed' && github.actor != 'renovate[bot]' && inputs.env == 'prod'}} + if: ${{ always() && steps.Helm-sync.outcome != 'success' && github.actor != 'renovate[bot]' && inputs.env == 'prod'}} uses: act10ns/slack@v2.1.0 with: status: ${{ steps.Helm-sync.outcome }}