From 574e6966e8b199a8cf4b129f3798d597bb6d9d0d Mon Sep 17 00:00:00 2001 From: ludeeus Date: Wed, 10 Apr 2024 19:09:34 +0000 Subject: [PATCH] Move if statement to step --- .github/workflows/validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 72e228639c9..1ba50b7903c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -177,9 +177,9 @@ jobs: runs-on: ubuntu-latest name: Trigger Discord notification when jobs fail needs: ["preflight","validate-hassfest", "validate-hacs", "validate-homeassistant"] - if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.event_name == 'schedule' }} steps: - name: Send notification + if: ${{ always() && contains(join(needs.*.result, ','), 'failure') && github.event_name == 'schedule' }} run: | curl \ -H "Content-Type: application/json" \