From f5877561d6c91fe0b8ccc4e3f6e9e90286199f53 Mon Sep 17 00:00:00 2001 From: "t.momose" Date: Mon, 14 Oct 2024 22:55:57 +0900 Subject: [PATCH] Fix check github-workflows. for To make it work on Windows as well. --- .github/workflows/check.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 23a7121d..f04d1ca5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,13 +27,8 @@ jobs: - name: Setup gradle uses: gradle/actions/setup-gradle@v4 - - name: Configure Gradle for GitHub Packages - run: | - echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties - echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties - - name: Run Test - run: ./gradlew test + run: ./gradlew test -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}" - name: Upload reports if: failure() @@ -58,13 +53,8 @@ jobs: - name: Setup gradle uses: gradle/actions/setup-gradle@v4 - - name: Configure Gradle for GitHub Packages - run: | - echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties - echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties - - name: Run detekt - run: ./gradlew detekt + run: ./gradlew detekt -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}" - name: Upload reports if: failure() @@ -89,13 +79,8 @@ jobs: - name: Setup gradle uses: gradle/actions/setup-gradle@v4 - - name: Configure Gradle for GitHub Packages - run: | - echo "gpr.user=${{ github.actor }}" >> ~/.gradle/gradle.properties - echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> ~/.gradle/gradle.properties - - name: Run ktlintCheck - run: ./gradlew ktlintCheck + run: ./gradlew ktlintCheck -Pgpr.user="${{ github.actor }}" -Pgpr.token="${{ secrets.GITHUB_TOKEN }}" - name: Upload reports if: failure()