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: ./