Skip to content

Commit cf75564

Browse files
authored
only check fork on PR events (#2011)
1 parent 69c6cc9 commit cf75564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-warehouse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
- name: Set requires approval output
8585
id: set-output
8686
run: |
87-
if [[ "${{ github.event_name }}" == "pull_request_target" && "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
87+
if [[ "${{ github.event_name }}" =~ ^pull_request && "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
8888
echo "requires_approval=true" >> $GITHUB_OUTPUT
8989
else
9090
echo "requires_approval=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)