Run CI build only for master branch
This change updates the CI build workflow to only trigger on pull requests to the master branch. The release branches almost never cause build errors, so we can skip that check.
This commit is contained in:
parent
a6651c553d
commit
01cbdebf0a
1 changed files with 4 additions and 2 deletions
6
.github/workflows/build-trusted.yml
vendored
6
.github/workflows/build-trusted.yml
vendored
|
@ -1,11 +1,13 @@
|
|||
name: Kernel Build (Trusted)
|
||||
|
||||
on: pull_request
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: [self-hosted]
|
||||
runs-on: self-hosted
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip ci')
|
||||
steps:
|
||||
- name: Clean Workspace
|
||||
|
|
Loading…
Reference in a new issue