From d4750304a96ed0f5fe36a0f82fa45666a9a143be Mon Sep 17 00:00:00 2001 From: Evan Lobeto Date: Tue, 26 Nov 2024 14:40:08 -0700 Subject: [PATCH] better conditions --- .github/workflows/template-build.yaml | 2 +- .github/workflows/template-deploy.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/template-build.yaml b/.github/workflows/template-build.yaml index 26dfe4e..4a0985e 100644 --- a/.github/workflows/template-build.yaml +++ b/.github/workflows/template-build.yaml @@ -112,7 +112,7 @@ jobs: fi - name: Post failed status - if: ${{ steps.build.outcome == 'failed' && github.actor != 'renovate[bot]'}} + if: ${{ always() && steps.build.outcome == 'failed' && github.actor != 'renovate[bot]'}} uses: act10ns/slack@v2.1.0 with: status: ${{ steps.build.outcome }} diff --git a/.github/workflows/template-deploy.yaml b/.github/workflows/template-deploy.yaml index 6fb3ba1..f5c486d 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: ${{ steps.Helm-sync.outcome == 'failed' && github.actor != 'renovate[bot]' && inputs.env == 'dev'}} + if: ${{ always() && steps.Helm-sync.outcome == 'failed' && 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: ${{ steps.Helm-sync.outcome == 'failed' && github.actor != 'renovate[bot]' && inputs.env == 'prod'}} + if: ${{ always() && steps.Helm-sync.outcome == 'failed' && github.actor != 'renovate[bot]' && inputs.env == 'prod'}} uses: act10ns/slack@v2.1.0 with: status: ${{ steps.Helm-sync.outcome }}