Skip to content

Commit

Permalink
Update Postman_MonitorID.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek28058 authored Dec 9, 2024
1 parent c3e63da commit d6603b4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/Postman_MonitorID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ jobs:
uses: actions/checkout@v3

- name: Trigger Postman Monitor
id: trigger_monitor
run: |
# Trigger the Postman Monitor and save the response as JSON
curl --request POST \
--url https://api.getpostman.com/monitors/${{ secrets.POSTMAN_MONITOR_ID }}/run \
--header "X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}"
--header "X-Api-Key: ${{ secrets.POSTMAN_API_KEY }}" \
--header "Content-Type: application/json" \
--output result.json
- name: Upload results as artifact
uses: actions/upload-artifact@v3
with:
name: postman-monitor-results
path: result.json

0 comments on commit d6603b4

Please sign in to comment.