Skip to content

Commit

Permalink
Merge branch 'branch-24.04' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
NvTimLiu committed Apr 11, 2024
2 parents 3aef4c4 + 13c82f5 commit e60e0a6
Show file tree
Hide file tree
Showing 10 changed files with 1,351 additions and 1,335 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ jobs:
git config user.email "[email protected] "
git fetch origin ${HEAD} ${BASE}
git checkout -b ${INTERMEDIATE_HEAD} origin/${HEAD}
OUT=$(git --no-pager diff --name-only origin/${BASE} | grep "${FILE_USE_BASE}" || true)
[[ ! -z "${OUT}" ]] && git checkout origin/${BASE} -- ${FILE_USE_BASE} && \
git commit -s -am "Auto-merge use submodule in BASE ref"
# Sync the $BASE branch with the commits from the $HEAD branch,
# excluding the paths defined as $FILE_USE_BASE (located under ./thirdparty).
git checkout origin/${BASE} -- ${FILE_USE_BASE}
# If any submodule file is updated in the HEAD branch,
# always change it to the corresponding one from the BASE branch.
[ ! -z "$(git status --porcelain=v1 --untracked=no)" ] && \
git commit -s -am "Auto-merge use ${BASE} versions"
git push origin ${INTERMEDIATE_HEAD} -f
env:
INTERMEDIATE_HEAD: bot-auto-merge-${{ env.HEAD }}
FILE_USE_BASE: thirdparty/cudf
FILE_USE_BASE: thirdparty/cudf thirdparty/cudf-pins

- name: auto-merge job
uses: ./.github/workflows/action-helper
Expand Down
Loading

0 comments on commit e60e0a6

Please sign in to comment.