github: add checks to prevent unnecessary runs

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-11-18 13:57:43 +05:30
parent e87e1c8815
commit 67fba3aab6
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
jobs:
deploy-main:
if: "contains(github.event.head_commit.message, '[deploy]')"
runs-on: ubuntu-latest
steps:
@ -35,6 +36,7 @@ jobs:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
deploy-staging:
if: "contains(github.event.head_commit.message, '[staging]')"
runs-on: ubuntu-latest
steps: