Skip to content

Commit

Permalink
Change CI to use pull_request
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <[email protected]>
  • Loading branch information
ryanbogan committed Dec 12, 2024
1 parent 3c7f275 commit f072a43
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
branches:
- "*"
- "feature/**"
pull_request_target:
types: [opened, synchronize, reopened]
pull_request:
branches:
- "*"
- "feature/**"
Expand Down Expand Up @@ -42,7 +41,7 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'schedule'

- uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -77,7 +76,7 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'schedule'

- uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -115,7 +114,7 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'schedule'

- uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -150,7 +149,7 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'schedule'

- uses: actions/checkout@v4
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down

0 comments on commit f072a43

Please sign in to comment.