Skip to content

Commit

Permalink
ci: Limit the kernel push only to branch pushes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mmlb committed Jun 21, 2022
1 parent 494f99a commit c43967e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/kernel-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
paths:
- kernel/**
- "!kernel/README.md"
branches:
- "**"
jobs:
kernel-publish:
runs-on: self-hosted
Expand Down

0 comments on commit c43967e

Please sign in to comment.