diff --git a/.github/workflows/test-igor-rebase-exec-workflow.yml b/.github/workflows/test-igor-rebase-exec-workflow.yml index 8bde2ae0ee..b042077f7c 100644 --- a/.github/workflows/test-igor-rebase-exec-workflow.yml +++ b/.github/workflows/test-igor-rebase-exec-workflow.yml @@ -82,11 +82,15 @@ jobs: run: git log --pretty=ref origin/main.. - name: Cleanup earlier rebase invocations run: git rebase --quit 2>/dev/null || true + - name: Get latest release branch + run: release_branch=$(git branch --sort="version:refname" -rl "origin/release*" | tail -n1) + - name: Gather base branch + run: base_branch=$((git merge-base --is-ancestor $release_branch HEAD && echo "$release_branch") || echo "origin/main") - name: Compile check each commit with ${{ inputs.experiment }} run: | git rebase --exec "git log --pretty=ref -n1" \ --exec "tools/clean_mies_installation.sh ${{ inputs.installer_flags }}" \ - --exec "tools/autorun-test.sh -p ${{ inputs.experiment }} -v IP_9_64" origin/main + --exec "tools/autorun-test.sh -p ${{ inputs.experiment }} -v IP_9_64" $base_branch - name: Gather log files and crash dumps if: always() run: tools/gather-logfiles-and-crashdumps.sh