Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/test_usecases_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,31 @@ jobs:
outputs:
environment: ${{ steps.validate.outputs.environment }}
steps:
- name: Test AllQuiet webhook
run: |
curl -X POST "https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9" \
-H "Content-Type: application/json" \
-d '{"status": "Open", "severity": "Critical", "message": "GitHub workflow test ping", "run_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}'


- name: Test AllQuiet webhook 2
env:
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: |
set -euo pipefail
payload=$(jq -n \
--arg status "Open" \
--arg severity "Critical" \
--arg message "GitHub workflow test ping" \
--arg run_url "$RUN_URL" \
'{status:$status, severity:$severity, message:$message, run_url:$run_url}')
echo "Sending payload: $payload"
curl --fail --show-error \
-H "Content-Type: application/json" \
-d "$payload" \
"https://allquiet.app/api/webhook/829f846c-4dfa-4a58-ab33-eafae34a57c9"


- name: Validate environment input
id: validate
run: |
Expand Down
Loading