Skip to content

Commit c9caac3

Browse files
authored
Merge pull request #21 from pusewicz/copilot/update-fly-deploy-workflow
Add workflow_dispatch trigger for manual deployments
2 parents aa0a856 + f02c5c4 commit c9caac3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ on:
88
- completed
99
branches:
1010
- main
11+
workflow_dispatch: # Allows manual triggering from GitHub UI
1112
jobs:
1213
deploy:
1314
name: Deploy app
1415
runs-on: ubuntu-latest
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
# Only run if manually triggered OR if the Ruby workflow succeeded
17+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
1618
concurrency: deploy-group # optional: ensure only one action runs at a time
1719
steps:
1820
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)