From c08ea3f64062c4b3b27e2577721ea334464d6bab Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Mon, 23 Sep 2024 09:50:59 +0530 Subject: [PATCH] checking the response of the curl command --- .github/workflows/pr.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 699bf7995..044f11f11 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -55,11 +55,12 @@ jobs: - name: Calling All SDK workflows run: | - curl -L \ + response=$(curl -L \ -XPOST \ -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}}"}}' + -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": "${{github.head_ref}}"}}') + echo "Triggered workflow with response: $response" \ No newline at end of file