Skip to content

feat: extend chaos testing to proxy/record mode #3

feat: extend chaos testing to proxy/record mode

feat: extend chaos testing to proxy/record mode #3

Workflow file for this run

name: Issue Notification

Check failure on line 1 in .github/workflows/notify-issue.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/notify-issue.yml

Invalid workflow file

(Line: 8, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SLACK_WEBHOOK != ''
on:
issues:
types: [opened]
jobs:
notify:
runs-on: ubuntu-latest
if: ${{ secrets.SLACK_WEBHOOK != '' }}
env:
TITLE: ${{ github.event.issue.title }}
URL: ${{ github.event.issue.html_url }}
AUTHOR: ${{ github.event.issue.user.login }}
NUM: ${{ github.event.issue.number }}
steps:
- name: Notify Slack
run: |
jq -n --arg text "🐛 New issue #${NUM} on aimock by *${AUTHOR}*: <${URL}|${TITLE}>" \
'{text: $text}' | curl -sf -X POST "${{ secrets.SLACK_WEBHOOK }}" \
-H "Content-Type: application/json" -d @-