Skip to content

Commit

Permalink
Change CI to use pull_request (#1009) (#1012)
Browse files Browse the repository at this point in the history
* Change CI to use pull_request

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit 7feacd6)

Co-authored-by: Ryan Bogan <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and ryanbogan authored Dec 14, 2024
1 parent d83dc5b commit 80f9c0a
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 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 @@ -39,12 +38,6 @@ jobs:
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}

- uses: actions/checkout@v4
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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -74,12 +67,6 @@ jobs:

steps:
- uses: actions/checkout@v4
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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -112,12 +99,6 @@ jobs:
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}

- uses: actions/checkout@v4
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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -147,12 +128,6 @@ jobs:

steps:
- uses: actions/checkout@v4
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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down

0 comments on commit 80f9c0a

Please sign in to comment.