From 5162240176a985785ab42d8ddcc738085a33265d Mon Sep 17 00:00:00 2001 From: Scion Date: Thu, 10 Jul 2025 14:05:13 -0700 Subject: [PATCH] Added names and dirs outputs. --- gitea/download-previous-artifacts/action.yaml | 9 ++++++--- .../download-previous-artifacts.cs | 12 ++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gitea/download-previous-artifacts/action.yaml b/gitea/download-previous-artifacts/action.yaml index cd10480..f3d1877 100644 --- a/gitea/download-previous-artifacts/action.yaml +++ b/gitea/download-previous-artifacts/action.yaml @@ -50,9 +50,12 @@ inputs: required: false default: "${{ github.token }}" outputs: - downloadedArtifacts: - description: "The downloaded artifacts." - value: ${{ steps.download.outputs.downloadedArtifacts }} + downloadedArtifactNames: + description: "The downloaded artifacts names" + value: ${{ steps.download.outputs.downloadedArtifactNames }} + downloadedArtifactPaths: + description: "The downloaded artifact paths." + value: ${{ steps.download.outputs.downloadedArtifactPaths }} downloadedArtifactDirs: description: "The extracted downloaded artifact directories." value: ${{ steps.download.outputs.downloadedArtifactDirs }} diff --git a/gitea/download-previous-artifacts/download-previous-artifacts.cs b/gitea/download-previous-artifacts/download-previous-artifacts.cs index fc8b0ba..3dd91bd 100644 --- a/gitea/download-previous-artifacts/download-previous-artifacts.cs +++ b/gitea/download-previous-artifacts/download-previous-artifacts.cs @@ -121,8 +121,11 @@ if (artifactsToDownload.Length is 0) return 1; } +StringBuilder namesBuilder = new(); +namesBuilder.AppendLine("downloadedArtifactNames<