From a7b544f6a5bbfbb4046c001a4ca156fd8747f5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwieci=C5=84ski?= <36954793+mateuszkwiecinski@users.noreply.github.com> Date: Sun, 4 Aug 2024 08:09:01 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a08285..66c540f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,12 +25,11 @@ jobs: - name: Downgrade dependency version to see the diff run: sed -i -E 's/androidx.paging:paging-common-ktx:[[:digit:]]+.[[:digit:]]+.[[:digit:]]+/androidx.paging:paging-common-ktx:3.2.0/g' testproject/build.gradle - - uses: gradle/actions/setup-gradle@v3 - with: - build-root-directory: testproject - arguments: dependencies - gradle-home-cache-cleanup: true + - uses: gradle/actions/setup-gradle@v4 + - run: ./gradlew dependencies + working-directory: testproject + - id: dependency-diff if: github.event_name == 'pull_request' uses: ./ @@ -106,11 +105,10 @@ jobs: printf "org.gradle.unsafe.configuration-cache=true" > ~/.gradle/gradle.properties shell: bash - - uses: gradle/actions/setup-gradle@v3 - with: - build-root-directory: testproject - arguments: dependencies --no-configuration-cache - gradle-home-cache-cleanup: true + - uses: gradle/actions/setup-gradle@v4 + + - run: ./gradlew dependencies --no-configuration-cache + working-directory: testproject - id: dependency-diff uses: ./ @@ -169,11 +167,10 @@ jobs: - name: Downgrade dependency version to see the diff run: sed -i -E 's/androidx.paging:paging-common-ktx:[[:digit:]]+.[[:digit:]]+.[[:digit:]]+/androidx.paging:paging-common-ktx:3.2.0/g' testproject/build.gradle - - uses: gradle/actions/setup-gradle@v3 - with: - build-root-directory: testproject - arguments: dependencies - gradle-home-cache-cleanup: true + - uses: gradle/actions/setup-gradle@v4 + + - run: ./gradlew dependencies + working-directory: testproject - id: dependency-diff uses: ./