From c9dbbe8692d613657ec0bf8ae41ca97366b2bfb1 Mon Sep 17 00:00:00 2001
From: user111192 <3538995003@qq.com>
Date: Sun, 15 Sep 2024 07:19:27 +0800
Subject: [PATCH 1/3] ci: add build scan

---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6718c97..4e51256 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,7 +41,7 @@ jobs:
     - name: Build with Gradle Wrapper
       run: |
           NOW=$(date '+%Y-%m-%d-%H.%M')
-          ./gradlew build -Pminecraft_version="${{ matrix.minecraft }}" -Partifact_date=".artifact_$NOW"
+          ./gradlew build -Pminecraft_version="${{ matrix.minecraft }}" -Partifact_date=".artifact_$NOW" --scan
 
     # NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
     # If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.

From d46dbe23d87100bf485dad7111037c18443bed21 Mon Sep 17 00:00:00 2001
From: user111192 <3538995003@qq.com>
Date: Sun, 15 Sep 2024 07:25:53 +0800
Subject: [PATCH 2/3] ci: agree the terms of use

fix bugs
---
 settings.gradle | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/settings.gradle b/settings.gradle
index 6b8a9ce..2f7dc16 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -12,9 +12,17 @@ pluginManagement {
 
 plugins {
 	id "org.gradle.toolchains.foojay-resolver-convention" version "+"
+	id "com.gradle.develocity" version "3.18.1"
 }
 
 include ("fabric")
 include ("forge")
 
-rootProject.name = "Tianjin-Metro"
\ No newline at end of file
+rootProject.name = "Tianjin-Metro"
+
+develocity {
+    buildScan {
+        termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
+        termsOfUseAgree = "yes"
+    }
+}

From afb41e59fa08fddde0096d7811ade793159e55e7 Mon Sep 17 00:00:00 2001
From: user111192 <3538995003@qq.com>
Date: Sun, 15 Sep 2024 07:40:32 +0800
Subject: [PATCH 3/3] ci: skip dependency submission when pull requests

skip dependency submission when pull requests
---
 .github/workflows/build.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4e51256..0fe3a45 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -80,6 +80,7 @@ jobs:
     runs-on: ubuntu-latest
     permissions:
       contents: write
+    if: github.event_name != 'pull_request'
 
     steps:
     - uses: actions/checkout@v4