From 80f9c0a3d436ad80e50aba793742310bf7065940 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 18:32:03 -0800 Subject: [PATCH] Change CI to use pull_request (#1009) (#1012) * Change CI to use pull_request Signed-off-by: Ryan Bogan (cherry picked from commit 7feacd67b3c7694ff4a1c1c2b430f2447a1ed4ab) Co-authored-by: Ryan Bogan --- .github/workflows/CI.yml | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 26fca87b0..869a5abf3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,8 +6,7 @@ on: branches: - "*" - "feature/**" - pull_request_target: - types: [opened, synchronize, reopened] + pull_request: branches: - "*" - "feature/**" @@ -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 @@ -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 @@ -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 @@ -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