Skip to content

Commit

Permalink
Add snippet warning (#273)
Browse files Browse the repository at this point in the history
Signed-off-by: billytrend-cohere <[email protected]>
  • Loading branch information
billytrend-cohere authored Dec 16, 2024
1 parent e239a4f commit 1c92a22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/snippet-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: snippet-ci

on:
pull_request: {}
push:
branches:
- main
Expand Down Expand Up @@ -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 }}

0 comments on commit 1c92a22

Please sign in to comment.