Skip to content

Commit

Permalink
Support workflow_dispatch event.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Sep 13, 2020
1 parent b35ff9a commit b2256a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rerun-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- Pull Request Fail
types:
- completed
workflow_dispatch:

jobs:
rerun-workflow:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ on:
- labeled
- unlabeled

# Check open pull requests for relevant labels and re-run the
# corresponding workflows if necessary.
workflow_dispatch:

# Remove relevant labels when a workflow run finishes successfully.
workflow_run:
workflows:
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ async function run(): Promise<void> {
await action.handlePullRequestEvent(octokit)
break
}
case 'push':
case 'schedule':
case 'push': {
case 'workflow_dispatch': {
await action.handleRepoEvent(octokit)
break
}
Expand Down

0 comments on commit b2256a7

Please sign in to comment.