From 8a490ebe458a1014e4348ef4dab9767b2e047c6c Mon Sep 17 00:00:00 2001 From: Vlad Chesnokov Date: Fri, 24 May 2024 12:00:01 +0400 Subject: [PATCH] Update action to use fresh version of gradle and scan --- .github/workflows/run-reproducer.yml | 20 ++++++++++++++------ README.md | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-reproducer.yml b/.github/workflows/run-reproducer.yml index ba39928..3ef4905 100644 --- a/.github/workflows/run-reproducer.yml +++ b/.github/workflows/run-reproducer.yml @@ -7,11 +7,19 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - distribution: 'zulu' - java-version: 11 - - uses: gradle/gradle-build-action@v2 + distribution: 'temurin' + java-version: 17 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 with: - arguments: help --info \ No newline at end of file + gradle-version: release-candidate + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" + + - name: Run build # change the command below to whatever you need to reproduce the issue + run: gradle help --info diff --git a/README.md b/README.md index 069fe16..bbe3114 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,6 @@ https://user-images.githubusercontent.com/419883/147940456-d0c96c90-f2b5-4574-81 - You can also edit your reprocer in an online editor by replacing `github.com` with `github.dev` in the URL (or by pressing the '.' key on the keyboard). - Adjust the [GitHub Action file](.github/workflows/run-reproducer.yml) - You can configure the executed Gradle tasks as well as the environment (task options, log level, JVM version, operating system, etc) - - The documentation for the Gradle GitHub Action is available [here](https://github.com/gradle/gradle-build-action) + - The documentation for the Gradle GitHub Action is available [here](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md) - Verify that the reproducer exhibits the problem on the [GitHub Action page](https://github.com/gradle/gradle-issue-reproducer/actions) - Link your reproducer to the issue