Skip to content

Commit 122eda4

Browse files
feat: add manual workflow dispatch (#2546)
This is a very minor tweak, but super useful for testing workflows. It allows you to trigger workflows manually via a github repo's actions tab, or even more useful is running the workflows on alternative branches via the command line. So for example if I am testing changes I've pushed to workflow in my own dev branch and want to quickly see if it works without having to send a PR or work on main branch to trigger, I can do something like this: `gh workflow run "Run Tests" --ref fix-lua-test-ci` and it will manually trigger the `Run Tests` workflow.
1 parent 9da55a3 commit 122eda4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
types: [opened, synchronize, reopened]
99
merge_group:
1010
branches: [main]
11+
workflow_dispatch:
1112

1213
jobs:
1314
test:

0 commit comments

Comments
 (0)