From 7fea37eb5d64ee4b680668a096d9404e6e4f5015 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Fri, 8 May 2026 15:06:19 +0300 Subject: [PATCH] ci(deploy): allow workflow_dispatch to trigger deploy jobs Enables manual re-deploy via 'gh workflow run quality-gate.yml' without needing a code push. Useful for: redeploy after secret rotation, post- incident recovery, deploy verification. --- .github/workflows/quality-gate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index d3144e7b..1d32c470 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -81,7 +81,7 @@ jobs: name: Bump Version runs-on: ubuntu-latest needs: [web, security-audit] - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') outputs: new_version: ${{ steps.bump.outputs.version }} @@ -121,7 +121,7 @@ jobs: name: Deploy app.pezkuwichain.io runs-on: ubuntu-latest needs: [bump-version] - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') steps: - name: Download build artifact @@ -152,7 +152,7 @@ jobs: name: Deploy pex.mom runs-on: ubuntu-latest needs: [bump-version] - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') steps: - name: Download build artifact