From 0bfdb7a906ae9bd0e711ad396d9c422fbbcba2c4 Mon Sep 17 00:00:00 2001 From: Ilia Zarubin Date: Tue, 3 Nov 2020 22:34:10 +0300 Subject: [PATCH] CI: trigger build only when PR is created --- .github/workflows/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 676814635b..5db6184ece 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,16 +6,8 @@ # Name of this Workflow name: Build PineTime Firmware -# When to run this Workflow... -on: - - # Run this Workflow when files are updated (Pushed) in the "master" Branch - push: - branches: [ master ] - - # Also run this Workflow when a Pull Request is created or updated in the "master" Branch - pull_request: - branches: [ master ] +# Run this Workflow when Pull Request is created or updated +on: [pull_request] # Steps to run for the Workflow jobs: @@ -168,4 +160,4 @@ jobs: find . -name "pinetime-mcuboot-app.*" -ls # Embedded Arm Toolchain and nRF5 SDK will only be cached if the build succeeds. -# So make sure that the first build always succeeds, e.g. comment out the "Make" step. \ No newline at end of file +# So make sure that the first build always succeeds, e.g. comment out the "Make" step.