Skip to content

Commit 03703c0

Browse files
nakamura-toclaude
andcommitted
Use Gradle setup action in CI workflows
Replace manual gradlew permission and caching with the official gradle/actions/setup-gradle action for better maintainability. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f604508 commit 03703c0

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
distribution: 'zulu'
2020
java-version: 21
2121

22-
- name: Grant execute permission for ./gradlew
23-
run: chmod +x gradlew
22+
- name: Set up Gradle
23+
uses: gradle/actions/[email protected]
2424

2525
- name: Build plugin
2626
run: ./gradlew build

.github/workflows/release.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,8 @@ jobs:
4848
with:
4949
token: ${{ secrets.REPO_ACCESS_TOKEN }}
5050

51-
- name: Grant execute permission for gradlew
52-
run: chmod +x gradlew
53-
54-
- name: Cache Gradle
55-
uses: actions/cache@v4
56-
with:
57-
path: |
58-
~/.gradle/caches
59-
~/.gradle/wrapper
60-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
61-
restore-keys: |
62-
${{ runner.os }}-gradle-
51+
- name: Set up Gradle
52+
uses: gradle/actions/[email protected]
6353

6454
- name: Release ${{ env.RELEASE_VERSION }}
6555
run: |

0 commit comments

Comments
 (0)