From 77e912de30f821a86b85bb018dd26c0c34dcbf81 Mon Sep 17 00:00:00 2001 From: msubrama Date: Mon, 11 Dec 2023 06:18:25 -0800 Subject: [PATCH] fixing checkout issues --- .github/workflows/xrt_ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/xrt_ci.yml b/.github/workflows/xrt_ci.yml index 4cba15901a3..b9db9e0ea2c 100644 --- a/.github/workflows/xrt_ci.yml +++ b/.github/workflows/xrt_ci.yml @@ -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}} @@ -70,13 +70,14 @@ 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}} path: ${{ github.workspace }}/${{ github.run_number }} - submodules: recursive + submodules: recursive + persist-credentials: false - name: Checkout private repository uses: actions/checkout@v3 @@ -111,8 +112,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}}