name: Pull Requests
on: pull_request_target
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source code
        uses: actions/checkout@v2
        with:
            ref: ${{ github.event.pull_request.head.sha }}
      - name: Set up JDK 11.0.11
        uses: actions/setup-java@v1
        with:
          java-version: 11.0.11
      - name: Run with Gradle
        run: ./gradlew clean test --info
      - uses: kentaro-m/auto-assign-action@v1.1.2
        with:
          configuration-path: ".github/auto_assign.yml"

name: Pull Requests
on: pull_request_target
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source code
        uses: actions/checkout@v2
        with:
            ref: ${{ github.event.pull_request.head.sha }}

      - uses: sdkman/sdkman-action@master
        id: sdkman
        with:
          candidate: java
          version: 11.0.12-sem
      - uses: actions/setup-java@v1
        id: setup-java
        with:
          java-version: 11.0.12
          jdkFile: ${{ steps.sdkman.outputs.file }}            
      - name: Run with Gradle
        run: ./gradlew clean test --info
      - uses: kentaro-m/auto-assign-action@v1.1.2
        with:
          configuration-path: ".github/auto_assign.yml"

Use sdkman GH action for Java in PRs.
Use sdkman GH action for Java in PRs.
