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:
Fabian Mastenbroek 2021-06-14 13:35:17 +02:00
parent a6651c553d
commit 01cbdebf0a
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85

View file

@ -1,11 +1,13 @@
name: Kernel Build (Trusted) name: Kernel Build (Trusted)
on: pull_request on:
pull_request:
branches: [master]
jobs: jobs:
build: build:
name: 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') if: github.event.pull_request.head.repo.full_name == github.repository && !contains(github.event.head_commit.message, 'skip ci')
steps: steps:
- name: Clean Workspace - name: Clean Workspace