Skip to content

Commit a3babf1

Browse files
committed
Merge PR ceph#63221 into main
* refs/pull/63221/head: script: ignore main branch when cleaning ci Reviewed-by: Casey Bodley <[email protected]> Reviewed-by: John Mulligan <[email protected]>
2 parents b85b43d + 4ed4bdc commit a3babf1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/script/clean-ci

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ function iterate_ci {
4747
commit=$(cut -f1 <<<"$commit_ref")
4848
ref=$(cut -f2 <<<"$commit_ref")
4949

50+
if [[ "$ref" == 'refs/heads/main' ]]; then
51+
eprintf 'Ignoring main branch'
52+
continue
53+
fi
54+
5055
eprintf 'Examining %s (commit %s)' "$ref" "$commit"
5156

5257
commit_date=$(git log -1 --format="%ct" "$commit")

0 commit comments

Comments
 (0)