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