From bb4a2c17a72e7ae825ddef3bea0b21b4b1dcdbc5 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 21 Aug 2020 18:17:50 +0900 Subject: [PATCH] Fix cache command --- .github/workflows/pr-build.yml | 6 +++--- .github/workflows/release-build.yml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 3435f01..144ce4d 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 14 - - uses: burrunan/gradle-cache-action@v1 - name: Cache .gradle - name: Build with Gradle - run: ./gradlew build + uses: burrunan/gradle-cache-action@v1 + with: + arguments: build diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 88ac9bb..a4bfc17 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -15,7 +15,8 @@ jobs: java-version: 14 - name: Build release with Gradle uses: burrunan/gradle-cache-action@v1 - arguments: build final -Prelease.version=${{ github.event.inputs.version }} + with: + arguments: build final -Prelease.version=${{ github.event.inputs.version }} env: PUBLISH_USERNAME: ${{ github.actor }} PUBLISH_PASSWORD: ${{ secrets.GITHUB_TOKEN }}