From 72abb4fddbba8af0f3ffbadfcb3b76729c48c329 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 20 Sep 2024 14:00:34 +0530 Subject: [PATCH] Added the PR branch name as input --- .github/workflows/pr.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5025b7696..ed71adde0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -53,14 +53,6 @@ jobs: const token = await getAccessToken() return token - - name: Fetching all workflows in codegen - run: | - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ steps.get_access_token.outputs.result }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/xero-internal/xeroapi-sdk-codegen/actions/workflows - - name: Calling node SDK workflow run: | curl -L \ @@ -69,4 +61,4 @@ jobs: -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/codegen-node-pr.yml/dispatches \ - -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name":"master"}}' \ No newline at end of file + -d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": ${{github.head_ref}}}}' \ No newline at end of file