From 4cc3b67eb1dc1398c589c5b8c0721f667657d61d Mon Sep 17 00:00:00 2001 From: billytrend-cohere <144115527+billytrend-cohere@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:27:53 -0500 Subject: [PATCH] Add snippet warning Signed-off-by: billytrend-cohere <144115527+billytrend-cohere@users.noreply.github.com> --- .github/workflows/snippet-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snippet-ci.yml b/.github/workflows/snippet-ci.yml index f33f7608..a1abe7bf 100644 --- a/.github/workflows/snippet-ci.yml +++ b/.github/workflows/snippet-ci.yml @@ -1,7 +1,6 @@ name: snippet-ci on: - pull_request: {} push: branches: - main @@ -38,3 +37,12 @@ jobs: env: CO_API_KEY: ${{ secrets.COHERE_TOKEN }} run: pnpm run --filter snippet-tester test + + - name: "Notify Slack" + if: failure() + uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1 + with: + channel-id: "#endpoints-operations" + slack-message: "🚨 Snippets regression detected! see <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|job>." + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_DEPLOY_NOTIFIER_BOT_TOKEN }}