diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 820451b..868f3f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ concurrency: cancel-in-progress: true env: - RUNTIME_VERSION: 17 + RUNTIME_VERSION: 11 jobs: build: @@ -23,14 +23,14 @@ jobs: runs-on: "${{ matrix.os }}" steps: - name: "checkout repository" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "setup jdk ${{ env.RUNTIME_VERSION }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "${{ env.RUNTIME_VERSION }}" - name: "run gradle build" uses: "gradle/gradle-build-action@v2" with: - cache-read-only: "${{ github.ref != 'refs/heads/main' || github.event_name == 'pull_request' }}" + cache-read-only: "${{ !startsWith(github.ref, 'refs/heads/main/') || github.event_name == 'pull_request' }}" arguments: "build" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml deleted file mode 100644 index 2248e15..0000000 --- a/.github/workflows/validate.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: "validate gradle wrapper" - -on: ["pull_request", "push"] - -jobs: - build: - runs-on: "ubuntu-latest" - steps: - - name: "checkout repository" - uses: actions/checkout@v3 - - name: "validate gradle wrapper" - uses: "gradle/wrapper-validation-action@v1"