Skip to content

Commit 31cf395

Browse files
committed
DEBUG
1 parent 6cf992c commit 31cf395

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update-subtree.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,23 @@ jobs:
185185
merge -Xsubtree=library subtree/library; then
186186
echo "MERGE_CONFLICTS=yes" >> $GITHUB_ENV
187187
for d in $(cat ../submodule-heads | cut -f2 -d" ") ; do git reset HEAD $d ; done
188-
git submodule foreach 'grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
189188
git -c user.name=gitbot -c user.email=git@bot commit -a -m "Merge from $NEXT_COMMIT_HASH with conflicts"
190189
else
191190
echo "MERGE_CONFLICTS=no" >> $GITHUB_ENV
192-
git submodule foreach 'grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
193-
git -c user.name=gitbot -c user.email=git@bot \
194-
commit -m "Update submodules" library/
195191
fi
196192
git replace -d subtree/library
197193
git replace -d main~1
198194
NEW_SUBTREE_HEAD=$(git rev-parse subtree/library)
199195
echo "NEW_SUBTREE_HEAD=${NEW_SUBTREE_HEAD}" >> $GITHUB_ENV
200196
197+
set -vx
198+
cat ../submodule-heads
199+
git submodule status
200+
git submodule foreach 'grep $sm_path $toplevel/../submodule-heads | cut -f1 -d" " | xargs git checkout'
201+
git submodule status
202+
git -c user.name=gitbot -c user.email=git@bot \
203+
commit -m "Update submodules" library/
204+
201205
sed -i "s/^channel = \"nightly-.*\"/channel = \"nightly-${NEXT_TOOLCHAIN_DATE}\"/" rust-toolchain.toml
202206
git -c user.name=gitbot -c user.email=git@bot \
203207
commit -m "Update toolchain to ${NEXT_TOOLCHAIN_DATE}" rust-toolchain.toml

0 commit comments

Comments
 (0)