Skip to content

Commit 41e00f5

Browse files
authored
IFU into develop should look for main branch upstream (#2779)
Fixes #ISSUE_NUMBER
1 parent 777e73c commit 41e00f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/create_ifu_tag.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
4141
MERGE_SHA="${{ github.event.pull_request.merge_commit_sha }}"
4242
43+
# For release branches, local branch is same as remote branch. But, for rocm/pytorch's
44+
# develop branch, we want to use main branch upstream
45+
if [ "$BASE_REF" == "develop" ]; then
46+
BASE_REF="main"
47+
fi
48+
4349
# The ROCm base commit is the first parent of the merge commit that landed the PR
4450
# (i.e., the base branch tip BEFORE this PR merged).
4551
ROCM_BASE_SHA=$(git rev-parse "${MERGE_SHA}^1")

0 commit comments

Comments
 (0)