From aef6752ff61ed5fd028975b4a0550e214f725dd5 Mon Sep 17 00:00:00 2001 From: sstent Date: Mon, 15 Dec 2025 07:03:29 -0800 Subject: [PATCH] sync --- .github/workflows/nomad-deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nomad-deploy.yml b/.github/workflows/nomad-deploy.yml index 21e2eb5..f9d8d2c 100644 --- a/.github/workflows/nomad-deploy.yml +++ b/.github/workflows/nomad-deploy.yml @@ -1,16 +1,17 @@ name: Deploy to Nomad on: - workflow_dispatch: workflow_run: - workflows: ["container-build.yml"] # Name of your build workflow + workflows: ["Build and Push Docker Image"] # Must match your build workflow name exactly types: - completed + workflow_dispatch: # Allows manual triggering for testing jobs: deploy: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + # Run if manually triggered OR if the build workflow succeeded + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code