diff --git a/.github/workflows/digitalocean-deploy.yml b/.github/workflows/digitalocean-deploy.yml index e07b8248..8760a3ee 100644 --- a/.github/workflows/digitalocean-deploy.yml +++ b/.github/workflows/digitalocean-deploy.yml @@ -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