diff --git a/.github/workflows/run-e2e-tests.yaml b/.github/workflows/run-e2e-tests.yaml index 718b7ae..08fadd4 100644 --- a/.github/workflows/run-e2e-tests.yaml +++ b/.github/workflows/run-e2e-tests.yaml @@ -1,13 +1,13 @@ name: E2E Test Workflow on: - pull_request: - branches: - - develop - - main + pull_request_review: + types: + - submitted jobs: run-e2e-tests: + if: github.event.review.state == 'approved' runs-on: ubuntu-latest permissions: id-token: write @@ -57,4 +57,13 @@ jobs: env: S3_BUCKET: unified-lambda-e2e-test-templates run: - aws s3 rm "s3://$S3_BUCKET" --recursive \ No newline at end of file + aws s3 rm "s3://$S3_BUCKET" --recursive + + - name: Send failure notification to Slack + if: always() + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file