Skip to content

Commit

Permalink
chore: debug failure when run manually
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Oct 30, 2024
1 parent ae46c09 commit 788c7d8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/e2ePerformanceTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ jobs:
with:
fetch-depth: 0 # Fetches the entire history

- name: Determine "baseline ref" (prev merge commit)
id: getBaselineRef
run: |
# Get the name of the current branch
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "$current_branch"
if [ "$current_branch" = "main" ]; then
# On the main branch, find the previous merge commit
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
previous_merge=$(git merge-base HEAD main)
fi
echo "$previous_merge"
echo "BASELINE_REF=$previous_merge" >> "$GITHUB_OUTPUT"
- name: Get pull request details
id: getPullRequestDetails
uses: ./.github/actions/javascript/getPullRequestDetails
Expand Down

0 comments on commit 788c7d8

Please sign in to comment.