Skip to content

Commit c43967e

Browse files
committed
ci: Limit the kernel push only to branch pushes
Which means we exclude all tags. This is necessary because according to the docs[1]: > Path filters are not evaluated for pushes of tags. So we need to avoid building for tags. This is fine to do because the kernel isn't versioned by tags but by the contents of the kernel/ tree. I went with `branches: "**"` instead of `tags-ignore: "**"` because inclusion is easier to understand vs exclusion imo. 1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore Signed-off-by: Manuel Mendez <github@i.m.mmlb.dev>
1 parent 494f99a commit c43967e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/kernel-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
paths:
55
- kernel/**
66
- "!kernel/README.md"
7+
branches:
8+
- "**"
79
jobs:
810
kernel-publish:
911
runs-on: self-hosted

0 commit comments

Comments
 (0)