add branching deploy condition

This commit is contained in:
Amruth Pillai
2022-11-23 14:15:36 +01:00
parent ab6ad65445
commit 9a42d684fb

View File

@ -10,6 +10,7 @@ on:
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Install DigitalOcean CLI
uses: digitalocean/action-doctl@v2.2.0
@ -21,6 +22,7 @@ jobs:
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Abruptly end the worklfow
run: exit 1