diff --git a/gitea/download-previous-artifacts/action.yaml b/gitea/download-previous-artifacts/action.yaml index 28dc0db..cd10480 100644 --- a/gitea/download-previous-artifacts/action.yaml +++ b/gitea/download-previous-artifacts/action.yaml @@ -49,14 +49,18 @@ inputs: description: "List of additional NuGet passwords to use." required: false default: "${{ github.token }}" -# outputs: -# query: -# description: "The query result." -# value: ${{ steps.query.outputs.console }} +outputs: + downloadedArtifacts: + description: "The downloaded artifacts." + value: ${{ steps.download.outputs.downloadedArtifacts }} + downloadedArtifactDirs: + description: "The extracted downloaded artifact directories." + value: ${{ steps.download.outputs.downloadedArtifactDirs }} runs: using: "composite" steps: - name: "Download artifacts." + id: download uses: act/common/dotnet/dotnet-10@master env: INPUTS: ${{ toJSON(inputs) }} diff --git a/gitea/download-previous-artifacts/download-previous-artifacts.cs b/gitea/download-previous-artifacts/download-previous-artifacts.cs index bb806cf..fc8b0ba 100644 --- a/gitea/download-previous-artifacts/download-previous-artifacts.cs +++ b/gitea/download-previous-artifacts/download-previous-artifacts.cs @@ -121,6 +121,11 @@ if (artifactsToDownload.Length is 0) return 1; } +StringBuilder artifactsBuilder = new(); +artifactsBuilder.AppendLine("downloadedArtifacts<