Update buildAndDeploy.yml

This commit is contained in:
Yair Morgenstern 2021-01-23 19:09:50 +02:00 committed by GitHub
parent d22ed53544
commit 68b308dd26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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