Skip to content

Commit

Permalink
feat: add workflow_despatch to filter for previous results
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Jan 11, 2025
1 parent f462a63 commit 24c632d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
pull_request:
branches:
- '**'

workflow_dispatch:

jobs:
testing:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion src/github/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export function filterWorkflowRuns(
return runs.filter(run => {
const isBranchMatch =
run.head_branch === githubProperties.branchName &&
(run.event === 'push' || run.event === 'schedule')
(run.event === 'push' ||
run.event === 'schedule' ||
run.event === 'workflow_dispatch')

const isPRMatch =
run.event === 'pull_request' &&
Expand Down

0 comments on commit 24c632d

Please sign in to comment.