mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-05-09 14:27:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user