Skip to content

Commit

Permalink
patch fix for checkout in GHA (Xilinx#7842)
Browse files Browse the repository at this point in the history
* patch fix for checkout in GHA

* fixing the checkout for windows too
  • Loading branch information
manikandan-xilinx authored Dec 11, 2023
1 parent 1b076c4 commit 3e4b896
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/xrt_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Checkout PR
uses: actions/checkout@v4
with:
repository: "${{ github.event.inputs.repo }}"
ref: "${{ github.event.inputs.branch_ref }}"
repository: "${{ github.event.pull_request.head.repo.full_name }}"
ref: "${{ github.event.pull_request.head.ref }}"
fetch-depth: 0
github-server-url: "https://github.com"
token: ${{ secrets.CI_CLOUD_TOKEN}}
Expand Down Expand Up @@ -66,7 +66,19 @@ jobs:

windows-build:
runs-on: Windows
steps:
steps:
- name: Checkout PR
uses: actions/checkout@v4
with:
repository: "${{ github.event.pull_request.head.repo.full_name }}"
ref: "${{ github.event.pull_request.head.ref }}"
fetch-depth: 0
github-server-url: "https://github.com"
token: ${{ secrets.CI_CLOUD_TOKEN}}
path: ${{ github.workspace }}/${{ github.run_number }}
submodules: recursive
persist-credentials: false

- name: Checkout private repository
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -99,8 +111,8 @@ jobs:
- name: Checkout PR
uses: actions/checkout@v3
with:
repository: "${{ github.event.inputs.repo }}"
ref: "${{ github.event.inputs.branch_ref }}"
repository: "${{ github.event.pull_request.head.repo.full_name }}"
ref: "${{ github.event.pull_request.head.ref }}"
fetch-depth: 0
github-server-url: "https://github.com"
token: ${{ secrets.CI_CLOUD_TOKEN}}
Expand Down

0 comments on commit 3e4b896

Please sign in to comment.