name: checks on: push: branches: [ main ] pull_request: workflow_dispatch: jobs: spotless: runs-on: ubuntu-latest if: ${{ github.actor != 'dependabot[bot]' }} steps: - name: Checkout Repo uses: actions/checkout@v3 - name: Set up Java uses: actions/setup-java@v2 with: distribution: adopt java-version: 11 cache: gradle - name: spotless run: ./gradlew --no-daemon --parallel clean spotlessCheck