From f17ac93776b25af05e95094a2469f145c395ca36 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:05:02 +1100 Subject: [PATCH] Slight Improvement --- build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 822ac755..13f462f6 100644 --- a/build.gradle +++ b/build.gradle @@ -985,26 +985,27 @@ if (cfApiKey.isPresent() || deploymentDebug.toBoolean()) { } doLast { // No File IDs in Debug Mode - if (!deploymentDebug.toBoolean()) { - def list = []; + //if (!deploymentDebug.toBoolean()) { + def list = [] for (def artifact : tasks.curseforge.getUploadArtifacts()) { list.add(artifact) for (def additionalArtifact : artifact.getAdditionalArtifacts()) { list.add(additionalArtifact) } } - def summary = "# CurseForge Build Summary" + def summary = "# CurseForge Build Summary (Mod ${modName} | Project ID ${curseForgeProjectId})" for (def artifact : list) { def fileId = artifact.getCurseFileId() def fileName = artifact.getArtifact().getSingleFile().name println("Uploaded File ${fileName}, With File ID: ${fileId}") - summary.concat("\n - File: ${fileName} | File ID: ${fileId}") + summary = summary + "\n - File: ${fileName} | File ID: ${fileId}" } + println(summary) def stepSummary = providers.environmentVariable("GITHUB_STEP_SUMMARY") if (stepSummary.isPresent()) { file(stepSummary.get()).write(summary) } - } + //} } } tasks.curseforge.dependsOn(build)