diff --git a/.github/workflows/pr-validation.yaml b/.github/workflows/pr-validation.yaml index 78ca87e..28b2957 100644 --- a/.github/workflows/pr-validation.yaml +++ b/.github/workflows/pr-validation.yaml @@ -7,29 +7,15 @@ on: # yamllint disable-line rule:truthy pull_request: branches: [master] types: [opened, reopened, synchronize] - pull_request_target: - branches: [master] - types: [opened, reopened, synchronize] jobs: pr-validation: name: PR Validation runs-on: ubuntu-latest - if: | - (github.actor != 'dependabot[bot]' && github.event_name != 'pull_request_target') || - (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') steps: - name: Checkout Repository uses: actions/checkout@v3 - if: github.actor != 'dependabot[bot]' - - # See: https://hugo.alliau.me/2021/05/04/migration-to-github-native-dependabot-solutions-for-auto-merge-and-action-secrets/#share-your-secrets-with-dependabot - - name: Checkout Repository [Dependabot] - uses: actions/checkout@v3 - if: github.actor == 'dependabot[bot]' - with: - ref: ${{ github.event.pull_request.head.sha }} - name: Set up JDK 8 uses: actions/setup-java@v3 @@ -41,7 +27,7 @@ jobs: - name: Set up Maven uses: stCarolas/setup-maven@v4.5 with: - maven-version: 3.8.2 + maven-version: 3.9.2 # actions/setup-java does not support multiple servers at this time # https://github.com/actions/setup-java/issues/85 @@ -63,4 +49,4 @@ jobs: ] - name: Build And Verify - run: mvn -B package + run: mvn -B install