You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/08/23 03:23:29 UTC
[groovy] 06/08: Publish build scan when running on GHA
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit cc841050a20488cc96c8ccd4bbb2e3cf2927176d
Author: Goooler <wa...@gmail.com>
AuthorDate: Sun Aug 14 08:44:54 2022 +0800
Publish build scan when running on GHA
---
.github/workflows/groovy-build-test-ea.yml | 4 +---
.github/workflows/groovy-build-test.yml | 2 --
gradle/build-scans.gradle | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/groovy-build-test-ea.yml b/.github/workflows/groovy-build-test-ea.yml
index 3dd5f1794b..e1323754c7 100644
--- a/.github/workflows/groovy-build-test-ea.yml
+++ b/.github/workflows/groovy-build-test-ea.yml
@@ -42,6 +42,4 @@ jobs:
- uses: gradle/gradle-build-action@v2
- name: Test with Gradle
run: ./gradlew test -Ptarget.java.home=/home/runner/openjdk
- timeout-minutes: 60
- env:
- GRADLE_SCANS_ACCEPT: yes
+ timeout-minutes: 60
\ No newline at end of file
diff --git a/.github/workflows/groovy-build-test.yml b/.github/workflows/groovy-build-test.yml
index 0116b4861b..e17cce8db7 100644
--- a/.github/workflows/groovy-build-test.yml
+++ b/.github/workflows/groovy-build-test.yml
@@ -40,5 +40,3 @@ jobs:
- name: Test with Gradle
run: ./gradlew test
timeout-minutes: 60
- env:
- GRADLE_SCANS_ACCEPT: yes
diff --git a/gradle/build-scans.gradle b/gradle/build-scans.gradle
index 427ddf5b33..5b4af89eec 100644
--- a/gradle/build-scans.gradle
+++ b/gradle/build-scans.gradle
@@ -19,7 +19,7 @@
def acceptFile = new File(gradle.gradleUserHomeDir, "gradle-scans-license-agree.txt")
def env = System.getenv()
-boolean isCI = env.CI || env.TRAVIS || env.TEAMCITY_VERSION
+boolean isCI = env.CI || env.TRAVIS || env.TEAMCITY_VERSION || env.GITHUB_ACTIONS
boolean hasAccepted = isCI || env.GRADLE_SCANS_ACCEPT=='yes' || acceptFile.exists() && acceptFile.text.trim() == 'yes'
boolean hasRefused = env.GRADLE_SCANS_ACCEPT=='no' || acceptFile.exists() && acceptFile.text.trim() == 'no'