github: Trigger the build job on PRs

And not on pushes only.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz 2020-03-12 10:03:27 +01:00 committed by Sebastien Boeuf
parent 8cbb6d0faf
commit 63c5d09537

View File

@ -1,9 +1,9 @@
name: Cloud Hypervisor Actions
on: [push, create]
on: [pull_request, create]
jobs:
build:
if: github.event_name == 'push'
if: github.event_name == 'pull_request'
name: Build
runs-on: ubuntu-latest
steps: