Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NoQA] fix: fetch main only if we are not on main #51751

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: fetch main only if we are not on main
  • Loading branch information
kirillzyusko committed Oct 30, 2024
commit 429c063163b54f9215018dcdffc6035bb9e7b22f
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