Skip to content

Commit

Permalink
Updated GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matrei committed Sep 6, 2023
1 parent e408210 commit edb084d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '8'
java-version: '11'
distribution: 'adopt'
- name: Cache Gradle
id: cache-gradle
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ./gradle/
key: ${{ runner.os }}-gradle
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ jobs:
GIT_USER_EMAIL: mattias.reichel@gmail.com
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Gradle
id: cache-gradle
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ./gradle/
key: ${{ runner.os }}-gradle
- uses: gradle/wrapper-validation-action@v1
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '8'
java-version: '11'
- name: Get latest release version number
id: get_version
uses: battila7/get-version-action@v2
Expand Down

0 comments on commit edb084d

Please sign in to comment.