Skip to content

Commit

Permalink
testing response object
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 23, 2024
1 parent 27997f3 commit efff19e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ jobs:
- name: Calling All SDK workflows
run: |
response = $(curl -X POST \
response=$(curl -X POST \
-H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/pr.yml/dispatches \
-d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}"}}'
-w "%{http_code}")
-d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}"}}')
echo "response: $response"
Expand Down

0 comments on commit efff19e

Please sign in to comment.