From d89fd900ccecbc4ad00876b286f672cd1cd8183b Mon Sep 17 00:00:00 2001 From: Ankur Srivastava Date: Sat, 20 Apr 2024 22:38:13 +0200 Subject: [PATCH] ci: force retrieve the missing tags and use v3 of checkout (#3296) --- .github/workflows/build-fork-pr-image.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-fork-pr-image.yml b/.github/workflows/build-fork-pr-image.yml index 3ad37683c2..4bae50d73b 100644 --- a/.github/workflows/build-fork-pr-image.yml +++ b/.github/workflows/build-fork-pr-image.yml @@ -33,12 +33,15 @@ jobs: sudo rm -rf "$AGENT_TOOLSDIRECTORY" - name: Clone the current repo - uses: actions/checkout@v4 + uses: actions/checkout@v3 with: - repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} - ref: ${{ github.event.client_payload.pull_request.head.ref || github.ref }} - fetch-depth: 0 - fetch-tags: true + ref: 'refs/pull/${{ github.event.client_payload.pull_request.number }}/merge' + # uses: actions/checkout@v4 + # with: + # repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} + # ref: ${{ github.event.client_payload.pull_request.head.ref || github.ref }} + # fetch-depth: 0 + # fetch-tags: true - name: Set GIT_TAG env run: |