Skip to content

Commit 4251d94

Browse files
committed
Run on pull_request
1 parent b7306d0 commit 4251d94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/o2-linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Find issues in O2 code
33
name: O2 linter
44

5-
"on": [pull_request_target, push]
5+
"on": [pull_request_target, pull_request, push]
66
permissions: {}
77
env:
88
BRANCH_MAIN: master
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Set branches
2222
run: |
23-
if [[ "${{ github.event_name }}" == "push" ]]; then
23+
if [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "pull_request" ]]; then
2424
branch_head="${{ github.ref }}"
2525
branch_base="origin/${{ env.BRANCH_MAIN }}"
2626
else

0 commit comments

Comments
 (0)