Skip to content

Commit

Permalink
Merge pull request #51751 from margelo/fix/e2e-builds
Browse files Browse the repository at this point in the history
[NoQA] fix: fetch main only if we are not on main
  • Loading branch information
mountiny authored Oct 30, 2024
2 parents eb7c813 + 429c063 commit 269b3ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/e2ePerformanceTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ jobs:
with:
fetch-depth: 0 # Fetches the entire history

- name: Fetch main branch
run: git fetch origin main:main

- name: Determine "baseline ref" (prev merge commit)
id: getBaselineRef
run: |
Expand All @@ -46,6 +43,7 @@ jobs:
previous_merge=$(git rev-list --merges HEAD~1 | head -n 1)
else
# On a feature branch, find the common ancestor of the current branch and main
git fetch origin main:main
previous_merge=$(git merge-base HEAD main)
fi
echo "$previous_merge"
Expand Down

0 comments on commit 269b3ad

Please sign in to comment.