Skip to content

Commit

Permalink
Remove duplicate checkout calls
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bogan <rbogan@amazon.com>
  • Loading branch information
ryanbogan committed Dec 12, 2024
1 parent f072a43 commit 11fbbdd
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -73,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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -111,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'
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
Expand Down Expand Up @@ -145,13 +127,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
if: github.event_name == 'push' || github.event_name == 'schedule'

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

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

0 comments on commit 11fbbdd

Please sign in to comment.