Skip to content

Commit be06808

Browse files
committed
ci: fix apply workflow when there are no new commits to apply
Signed-off-by: Benno Lossin <[email protected]>
1 parent e3b23c3 commit be06808

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,10 @@ jobs:
392392
pushd pin-init
393393
git config user.name "github-runner" && git config user.email "<>"
394394
git fetch
395+
if [ "$(git rev-parse HEAD)" = "$(git rev-parse origin/next)" ]; then
396+
# when there are no new commits, we can succeed directly
397+
exit 0
398+
fi
395399
if ! yes | bash ./to-kernel.sh ../kernel origin/next; then
396400
if ! git am --3way; then
397401
git am --show-current-patch=diff

0 commit comments

Comments
 (0)