Skip to content

Commit 96d1f5f

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

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
@@ -394,6 +394,10 @@ jobs:
394394
pushd pin-init
395395
git config user.name "github-runner" && git config user.email "<>"
396396
git fetch
397+
if [ "$(git rev-parse HEAD)" = "$(git rev-parse origin/next)" ]; then
398+
# when there are no new commits, we can succeed directly
399+
exit 0
400+
fi
397401
if ! yes | bash ./to-kernel.sh ../kernel origin/next; then
398402
if ! git am --3way; then
399403
git am --show-current-patch=diff

0 commit comments

Comments
 (0)