Skip to content

Commit 2c699f5

Browse files
[PETOSS-829] Use target OAS repo name (#764)
* [PETOSS-829] Use var for app_id as per docs * [PETOSS-829] Replace access token action * [PETOSS-829] Split workflows and run codegen validation via pull_request_target This is necessary as we can't access secrets from pull_request from forks * [PETOSS-829] Add oas repo argument
1 parent 6eaaa5f commit 2c699f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr-validation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ jobs:
3535
GH_TOKEN: ${{ steps.get_access_token.outputs.token }}
3636
run: |
3737
BRANCH_NAME="${{ github.event.pull_request.head.sha }}"
38+
OAS_REPO="${{ github.event.pull_request.head.repo.full_name }}"
3839
3940
# Trigger the workflow and capture the response
4041
gh workflow run pr.yml \
4142
--repo xero-internal/xeroapi-sdk-codegen \
4243
--ref master \
43-
--field branch_name="$BRANCH_NAME"
44+
--field branch_name="$BRANCH_NAME" \
45+
--field oas_repo="$OAS_REPO"
4446
4547
# Wait a moment for the run to be created
4648
sleep 5

0 commit comments

Comments
 (0)