From 9ab3b9b1bfc9ed9199e68f1ccdde16ca9bd88840 Mon Sep 17 00:00:00 2001 From: David Edler Date: Wed, 26 Jun 2024 13:02:43 +0200 Subject: [PATCH] fix(ci) ensure a branch from a forked pr is available in ci We would previously checkout the canonical repo, but for a PR from a fork we need to checkout the merge commit from that fork. WD-12279 --- .github/workflows/e2e.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index f7264d6..1dd2010 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,11 +25,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - # Fetch all history for all branches and tags - fetch-depth: 0 - - - name: Check out the source branch - run: git checkout ${{ github.event.pull_request.head.ref }} + ref: "${{ github.event.pull_request.merge_commit_sha }}" - name: Store current date and time in output id: datetime