fix workflows
This commit is contained in:
parent
ec138cc92b
commit
85d0cc7a12
2 changed files with 4 additions and 16 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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"
|
||||
|
|
12
.github/workflows/validate.yml
vendored
12
.github/workflows/validate.yml
vendored
|
@ -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"
|
Loading…
Reference in a new issue