From f06dd8420e6fcf2012bce4a787d4431fa9430aed Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 20 Sep 2024 12:40:33 +0530 Subject: [PATCH] Added the bearer in the curl command --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b498f0ac6..41778e448 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -54,8 +54,8 @@ jobs: run: | curl --fail-with-body \ -XPOST \ - -H 'Authorization: token ${{ steps.get_access_token.outputs.result }}' \ + -H 'Authorization: Bearer ${{ steps.get_access_token.outputs.result }}' \ -H "Accept: application/vnd.github.everest-preview+json" \ - -H "Content-Type: application/json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows/codegen-node-pr.yml/dispatches \ -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name":"master"}}' \ No newline at end of file