Skip to content

Commit

Permalink
feat: add manual workflow dispatch (#2546)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fidgetingbits authored Jul 22, 2024
1 parent 9da55a3 commit 122eda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
types: [opened, synchronize, reopened]
merge_group:
branches: [main]
workflow_dispatch:

jobs:
test:
Expand Down

0 comments on commit 122eda4

Please sign in to comment.