diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml index 7d2b6be636b7..2f4c587ce645 100644 --- a/.github/workflows/nightly-ci.yml +++ b/.github/workflows/nightly-ci.yml @@ -34,6 +34,14 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Run sqlness run: cargo sqlness + - name: Notify slack if failed + if: failure() + uses: slackapi/slack-github-action@v1.23.0 + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVELOP_CHANNEL }} + with: + payload: | + {"text": "Nightly CI failed for sqlness tests"} - name: Upload sqlness logs if: always() uses: actions/upload-artifact@v3 @@ -80,3 +88,11 @@ jobs: GT_S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} GT_S3_REGION: ${{ secrets.S3_REGION }} UNITTEST_LOG_DIR: "__unittest_logs" + - name: Notify slack if failed + if: failure() + uses: slackapi/slack-github-action@v1.23.0 + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVELOP_CHANNEL }} + with: + payload: | + {"text": "Nightly CI failed for cargo test"}