Skip to content

Commit

Permalink
fix(ci) ensure a branch from a forked pr is available in ci
Browse files Browse the repository at this point in the history
 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
  • Loading branch information
edlerd committed Jun 26, 2024
1 parent b63a98e commit 9ab3b9b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ab3b9b

Please sign in to comment.