From 587e7d25d3f21d31d5fb0df842f260fbb2b7d7ea Mon Sep 17 00:00:00 2001 From: Francis Li Date: Fri, 19 Jun 2026 16:19:25 -0700 Subject: [PATCH] [Closes #19] Move env var check from job to step --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd664b3..b59c330 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,14 +166,14 @@ jobs: name: Deploy needs: [ meta, merge ] if: | - ${{ always() + always() && (needs.meta.outputs.tag_exists == 'true' || needs.merge.result == 'success') - && vars.DOKKU_GIT_REMOTE_URL != '' }} runs-on: ubuntu-latest environment: ${{ needs.meta.outputs.environment }} steps: - name: Push to dokku uses: dokku/github-action@master + if: ${{ vars.DOKKU_GIT_REMOTE_URL != '' }} with: git_remote_url: ${{ vars.DOKKU_GIT_REMOTE_URL }} ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}