diff --git a/.github/workflows/ci-deep.yml b/.github/workflows/ci-deep.yml index 4a6139474..36c0d6772 100644 --- a/.github/workflows/ci-deep.yml +++ b/.github/workflows/ci-deep.yml @@ -76,11 +76,11 @@ jobs: name: "Fork tests" notify-on-failure: - if: always() + if: failure() + needs: ["lint", "build", "test-unit", "test-integration", "test-invariant", "test-fork"] runs-on: "ubuntu-latest" steps: - name: "Send Slack notification" - if: failure() # Runs only if a failure occurs in any previous job uses: "rtCamp/action-slack-notify@v2" env: SLACK_CHANNEL: "#ci-notifications" diff --git a/.github/workflows/ci-fork.yml b/.github/workflows/ci-fork.yml index d9f0f7dfe..80e7c4662 100644 --- a/.github/workflows/ci-fork.yml +++ b/.github/workflows/ci-fork.yml @@ -32,11 +32,11 @@ jobs: name: "Utils tests" notify-on-failure: - if: always() + if: failure() + needs: ["lint", "build", "test-fork", "test-utils"] runs-on: "ubuntu-latest" steps: - name: "Send Slack notification" - if: failure() # Runs only if a failure occurs in any previous job uses: "rtCamp/action-slack-notify@v2" env: SLACK_CHANNEL: "#ci-notifications"