From 68b308dd263f5f76602f4fbd2631e88bb171f1c9 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sat, 23 Jan 2021 19:09:50 +0200 Subject: [PATCH] Update buildAndDeploy.yml --- .github/workflows/buildAndDeploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index e22724c72a..5c1349f7a8 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -19,8 +19,10 @@ on: jobs: # This workflow contains a single job called "build" build: + # On push events only, if it's a "Update X" commit, it's probably something done through the UI - + # so an .md or yaml change, and not something we need to rebuild over # We can't simply put !startsWith - see https://github.community/t/expression-syntax-for-not-startswith/17040 - if: startsWith(github.event.commits[0].message, 'Update ') != true + if: github.event_name != 'push' || startsWith(github.event.commits[0].message, 'Update ') != true runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job