diff --git a/.github/workflows/apexE2E.yml b/.github/workflows/apexE2E.yml index e16abda031..e2fcd6ec91 100644 --- a/.github/workflows/apexE2E.yml +++ b/.github/workflows/apexE2E.yml @@ -111,14 +111,26 @@ jobs: automationBranch: ${{ inputs.automationBranch }} testToRun: 'trailApexReplayDebugger.e2e.ts' - slack_notification: - if: ${{ always() }} + slack_success_notification: + if: ${{ success() }} needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'Apex E2E Tests' summary: 'Apex LSP: ${{ needs.apexLSP.result }}, Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}, Debug Apex Tests: ${{ needs.debugApexTests.result }}, Run Apex Tests: ${{ needs.runApexTests.result }}, Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}' - result: ${{ github.event.workflow.result }} + result: 'Success' + workflow: 'actions/runs/${{ github.run_id}}' + type: 'e2e' + + slack_failure_notification: + if: ${{ failure() }} + needs: [apexLSP, apexReplayDebugger, debugApexTests, runApexTests, trailApexReplayDebugger] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'Apex E2E Tests' + summary: 'Apex LSP: ${{ needs.apexLSP.result }}, Apex Replay Debugger: ${{ needs.apexReplayDebugger.result }}, Debug Apex Tests: ${{ needs.debugApexTests.result }}, Run Apex Tests: ${{ needs.runApexTests.result }}, Trail Apex Replay Debugger: ${{ needs.trailApexReplayDebugger.result }}' + result: 'Failure' workflow: 'actions/runs/${{ github.run_id}}' type: 'e2e' \ No newline at end of file diff --git a/.github/workflows/coreE2E.yml b/.github/workflows/coreE2E.yml index 3bdcb96fcb..40a053f499 100644 --- a/.github/workflows/coreE2E.yml +++ b/.github/workflows/coreE2E.yml @@ -147,14 +147,26 @@ jobs: automationBranch: ${{ inputs.automationBranch }} testToRun: 'templates.e2e.ts' - slack_notification: - if: ${{ always() }} + slack_success_notification: + if: ${{ success() }} needs: [anInitialSuite, authentication, deployAndRetrieve, manifestBuilder, pushAndPull, sObjectsDefinitions, templates] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'Core E2E Tests' summary: 'An Initial Suite: ${{ needs.anInitialSuite.result }}, Authentication: ${{ needs.authentication.result }}, Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}, Manifest Builder: ${{ needs.manifestBuilder.result }}, Push and Pull: ${{ needs.pushAndPull.result }}, SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}, Templates: ${{ needs.templates.result }}' - result: ${{ github.event.workflow.result }} + result: 'Success' + workflow: 'actions/runs/${{ github.run_id}}' + type: 'e2e' + + slack_failure_notification: + if: ${{ failure() }} + needs: [anInitialSuite, authentication, deployAndRetrieve, manifestBuilder, pushAndPull, sObjectsDefinitions, templates] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'Core E2E Tests' + summary: 'An Initial Suite: ${{ needs.anInitialSuite.result }}, Authentication: ${{ needs.authentication.result }}, Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}, Manifest Builder: ${{ needs.manifestBuilder.result }}, Push and Pull: ${{ needs.pushAndPull.result }}, SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}, Templates: ${{ needs.templates.result }}' + result: 'Failure' workflow: 'actions/runs/${{ github.run_id}}' type: 'e2e' \ No newline at end of file diff --git a/.github/workflows/lspE2E.yml b/.github/workflows/lspE2E.yml index 2b84e21847..663ed71e82 100644 --- a/.github/workflows/lspE2E.yml +++ b/.github/workflows/lspE2E.yml @@ -75,14 +75,26 @@ jobs: automationBranch: ${{ inputs.automationBranch }} testToRun: 'visualforceLsp.e2e.ts' - slack_notification: - if: ${{ always() }} + slack_success_notification: + if: ${{ success() }} needs: [auraLSP, lwcLSP, visualforceLSP] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LSP E2E Tests' summary: 'Aura LSP: ${{ needs.auraLSP.result }}, LWC LSP: ${{ needs.lwcLSP.result }}, Visualforce LSP: ${{ needs.visualforceLSP.result }}' - result: ${{ github.event.workflow.result }} + result: 'Success' + workflow: 'actions/runs/${{ github.run_id}}' + type: 'e2e' + + slack_failurenotification: + if: ${{ failure() }} + needs: [auraLSP, lwcLSP, visualforceLSP] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'LSP E2E Tests' + summary: 'Aura LSP: ${{ needs.auraLSP.result }},\nLWC LSP: ${{ needs.lwcLSP.result }},\nVisualforce LSP: ${{ needs.visualforceLSP.result }}' + result: 'Failure' workflow: 'actions/runs/${{ github.run_id}}' type: 'e2e' \ No newline at end of file