Skip to content

Commit 460a6cf

Browse files
committed
Merge branch 'dev'
2 parents 4806073 + efbe00a commit 460a6cf

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/trim_core_package_history.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,8 @@ jobs:
9292
LAST_COMMIT=""
9393
for c in $(printf "%s\n" "${keep_commits[@]}" | tac); do
9494
echo "Processing commit $c ..."
95-
git checkout "$ORIG_HEAD" -- . || true
96-
if git ls-tree -r --name-only "$c" | grep -q '^dev$' 2>/dev/null; then
97-
git checkout "$c" -- dev || true
98-
fi
99-
if git ls-tree -r --name-only "$c" | grep -q '^master$' 2>/dev/null; then
100-
git checkout "$c" -- master || true
101-
fi
102-
95+
git checkout -- . || true
96+
git checkout "$c" -- . || true
10397
git add -A || true
10498
TREE_ID=$(git write-tree)
10599
AUTHOR_NAME=$(git show -s --format='%an' $c)

0 commit comments

Comments
 (0)