Skip to content

Commit 70b086e

Browse files
[PETOSS-829] Add oas repo argument
1 parent 5420fce commit 70b086e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pr-validation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Validation
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, reopened, synchronize]
66
branches: [master]
77

@@ -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)