Enable manual workflow triggers

This commit is contained in:
doomtube 2026-01-05 23:37:40 -05:00
parent c717c3751c
commit 2aa075e842
2 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,7 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch: # Enable manual trigger
env:
REGISTRY: qbit.realms.pub

View file

@ -12,6 +12,7 @@ on:
workflows: ["Build and Push"]
types: [completed]
branches: [main, master]
workflow_dispatch: # Enable manual trigger
env:
REGISTRY: qbit.realms.pub
@ -19,8 +20,8 @@ env:
jobs:
deploy:
# Only deploy if the build succeeded
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Only deploy if build succeeded OR manual trigger
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: docker
steps: