github: add checks to prevent unnecessary runs
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
e87e1c8815
commit
67fba3aab6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue