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.
This commit is contained in:
2026-05-08 15:06:19 +03:00
parent 68379dcf3a
commit 7fea37eb5d
+3 -3
View File
@@ -81,7 +81,7 @@ jobs:
name: Bump Version name: Bump Version
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [web, security-audit] 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: outputs:
new_version: ${{ steps.bump.outputs.version }} new_version: ${{ steps.bump.outputs.version }}
@@ -121,7 +121,7 @@ jobs:
name: Deploy app.pezkuwichain.io name: Deploy app.pezkuwichain.io
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [bump-version] 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: steps:
- name: Download build artifact - name: Download build artifact
@@ -152,7 +152,7 @@ jobs:
name: Deploy pex.mom name: Deploy pex.mom
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [bump-version] 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: steps:
- name: Download build artifact - name: Download build artifact