From 6cf552d5ad0dd410f421bc0405c64238b058fead Mon Sep 17 00:00:00 2001 From: can019 Date: Sat, 27 Sep 2025 17:00:48 +0900 Subject: [PATCH 1/4] =?UTF-8?q?chore:=20Gradle=20action=20v4=EB=A1=9C=20up?= =?UTF-8?q?grade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-java.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 773b9102..6b3a777d 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -22,14 +22,39 @@ permissions: pull-requests: write pages: write # GitHub Pages 배포 id-token: write # GitHub Pages 배포 + actions: write jobs: + dependency-submission: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v4 + with: + build-root-directory: apps/user-service + spotless-check: if: github.event.pull_request.draft == false name: Lint Check runs-on: ubuntu-latest steps: + - name: Debug cache settings + run: | + echo "Event name: ${{ github.event_name }}" + echo "Event type: ${{ github.event.action }}" + echo "Cache read-only condition: ${{ github.event_name == 'pull_request' }}" + echo "GitHub ref: ${{ github.ref }}" + - name: Checkout repository uses: actions/checkout@v4 @@ -44,6 +69,11 @@ jobs: uses: gradle/actions/setup-gradle@v3 with: cache-read-only: ${{ github.event_name == 'pull_request' }} + gradle-home-cache-cleanup: false + gradle-home-cache-includes: | + caches + notifications + wrapper - name: Grant execute permission for Gradle wrapper run: chmod +x ./gradlew @@ -73,9 +103,9 @@ jobs: distribution: 'temurin' - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 + uses: gradle/actions/setup-gradle@v4 with: - cache-read-only: ${{ github.event_name == 'pull_request' }} + cache-disabled: false - name: Grant execute permission for Gradle wrapper run: chmod +x ./gradlew From 3aac1e882c6e2283b653c75240b890b18f49b9b7 Mon Sep 17 00:00:00 2001 From: can019 Date: Sat, 27 Sep 2025 17:06:43 +0900 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20Gradle=20=EC=BA=90=EC=8B=9C=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=ED=9B=84=20spotlessApply?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-java.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 6b3a777d..8e83bfb5 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -15,7 +15,7 @@ on: - ".github/workflows/ci-java.yml" permissions: - contents: read + contents: write # Dependency graph 생성용 packages: write security-events: write checks: write @@ -46,6 +46,7 @@ jobs: if: github.event.pull_request.draft == false name: Lint Check runs-on: ubuntu-latest + needs: dependency-submission steps: - name: Debug cache settings From bd959dc435dbc3aa59a717027824c5199b8fc836 Mon Sep 17 00:00:00 2001 From: can019 Date: Sat, 27 Sep 2025 17:13:12 +0900 Subject: [PATCH 3/4] =?UTF-8?q?chore:=20Submission=20=EB=B3=91=EB=A0=AC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-java.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 8e83bfb5..e2be9bd4 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -46,7 +46,6 @@ jobs: if: github.event.pull_request.draft == false name: Lint Check runs-on: ubuntu-latest - needs: dependency-submission steps: - name: Debug cache settings @@ -106,7 +105,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 with: - cache-disabled: false + cache-read-only: false - name: Grant execute permission for Gradle wrapper run: chmod +x ./gradlew From 7fc85fc285d32067bdf607eca8057a5202fe50f4 Mon Sep 17 00:00:00 2001 From: can019 Date: Sat, 27 Sep 2025 17:20:02 +0900 Subject: [PATCH 4/4] =?UTF-8?q?chore:=20main=EC=97=90=EC=84=9C=20tag=20?= =?UTF-8?q?=EB=B0=9C=ED=96=89=20=EC=8B=9C=20=EC=BA=90=EC=8B=9C=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=EC=9C=BC=EB=A1=9C=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-java.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index e2be9bd4..f19d3b00 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -26,6 +26,7 @@ permissions: jobs: dependency-submission: + if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: - name: Checkout sources @@ -105,7 +106,7 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 with: - cache-read-only: false + cache-read-only: ${{ github.event_name == 'pull_request' }} - name: Grant execute permission for Gradle wrapper run: chmod +x ./gradlew