From 7ac9f79d41af5ad2a6504af9dafe258a3ed21631 Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Sat, 8 Nov 2025 00:17:19 -0500 Subject: [PATCH] feat(ci): Add manual workflow dispatch to deployment workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added workflow_dispatch trigger to allow manual deployment without waiting for test workflow completion. This is useful for: - Testing the deployment workflow - Deploying when automatic trigger doesn't fire - Re-deploying without pushing new code Usage: - Go to Actions → Deploy to Raspberry Pi → Run workflow - Or via CLI: gh workflow run deploy.yml Updated the if condition to run on either: - Automatic trigger when tests complete successfully - Manual trigger via workflow_dispatch 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7acb6e9..3f78a1f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,13 +5,14 @@ on: workflows: ["Tests"] types: - completed + workflow_dispatch: jobs: deploy: name: Deploy to Raspberry Pis runs-on: self-hosted - # Only run if tests passed or were skipped - if: ${{ github.event.workflow_run.conclusion == 'success' }} + # Only run if tests passed (for workflow_run) or if manually triggered + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} steps: - name: Validate required secrets