Skip to content

Commit f2fa78c

Browse files
committed
Fix pr-triage workflow issue
1 parent 26c351b commit f2fa78c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pr-triage.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: PR Triage
22

33
on:
4-
push:
5-
branches:
6-
- '**' # All branches
7-
- '!main' # Exclude main if needed
4+
pull_request:
5+
types: [opened, reopened, synchronize]
86
workflow_dispatch:
97
inputs:
108
pr_number:
@@ -18,9 +16,8 @@ permissions:
1816

1917
jobs:
2018
triage-pr:
21-
if: github.event.pull_request != null || inputs.pr_number != '' # Only run if it's part of a PR or pr_number is provided
2219
uses: OpenSwiftUIProject/github-workflows/.github/workflows/pr-triage.yml@main
2320
with:
2421
# fromJSON workaround number inputs: https://github.com/orgs/community/discussions/67182#discussioncomment-8617964
25-
pr_number: ${{ fromJSON(inputs.pr_number) }}
22+
pr_number: ${{ inputs.pr_number && fromJSON(inputs.pr_number) || github.event.pull_request.number }}
2623
secrets: inherit

0 commit comments

Comments
 (0)