diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7af63409..622bf6e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,19 +25,14 @@ jobs: uses: stCarolas/setup-maven@v4.5 with: maven-version: 3.8.6 - - name: Pull Request Checkout - uses: actions/checkout@v3 + - name: Check out sources + uses: actions/checkout@v7 with: - ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - if: github.head_ref != '' - - name: Push Checkout - uses: actions/checkout@v3 - if: github.head_ref == '' + fetch-depth: 1 - name: Set up Python 3 uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.9' - name: Set up Java uses: actions/setup-java@v3 with: