Skip to content

Commit

Permalink
Added the PR branch name as input
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Sep 20, 2024
1 parent 6d3154a commit 72abb4f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"}}'
-d '{"ref":"PETOSS-536-enabling-workflow-dispatch","inputs":{"branch_name": ${{github.head_ref}}}}'

0 comments on commit 72abb4f

Please sign in to comment.