From 2cde06a14428b2169463c6a8ec6d88665d97ba22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Tue, 27 Aug 2024 08:06:48 +0300 Subject: [PATCH 1/2] Update build.yml --- .github/workflows/build.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a7bcea..3718562 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,23 +9,19 @@ jobs: name: "Build" runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v4" - - uses: "actions/setup-java@v4" + - uses: "actions/checkout@master" + - uses: "actions/setup-java@master" with: distribution: "adopt" java-version: "11" - - uses: "actions/cache@v4" + - uses: "actions/cache@master" with: - path: "~/.gradle/caches" - key: "${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }}" + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - uses: "actions/cache@v4" - with: - path: "~/.gradle/wrapper" - key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" - restore-keys: | - ${{ runner.os }}-gradlew- - run: | chmod +x gradlew ./gradlew build From 31aa8ae9cb190c74b7c21b83f8e8a0b93412bc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Tue, 27 Aug 2024 08:07:05 +0300 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e5a0f7..70f119e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,23 +9,19 @@ jobs: name: "Release" runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v4" - - uses: "actions/setup-java@v4" + - uses: "actions/checkout@master" + - uses: "actions/setup-java@master" with: distribution: "adopt" java-version: "11" - - uses: "actions/cache@v4" + - uses: "actions/cache@master" with: - path: "~/.gradle/caches" - key: "${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle.kts') }}" + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - uses: "actions/cache@v4" - with: - path: "~/.gradle/wrapper" - key: "${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}" - restore-keys: | - ${{ runner.os }}-gradlew- - run: | [[ "${{ github.event.release.tag_name }}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1 chmod +x gradlew