This commit is contained in:
2025-06-30 01:26:29 -07:00
parent 533a2d1319
commit f4495031ff
2 changed files with 4 additions and 2 deletions

View File

@@ -41,5 +41,6 @@ runs:
ARTIFACT_NAME: ${{ inputs.filePattern }} ARTIFACT_NAME: ${{ inputs.filePattern }}
ARTIFACT_FILENAME: ${{ inputs.artifactName }} ARTIFACT_FILENAME: ${{ inputs.artifactName }}
UNZIP_DIR: ${{ inputs.unzipDir }} UNZIP_DIR: ${{ inputs.unzipDir }}
INPUTS: ${{ toJSON(inputs) }}
with: with:
command: run "${{ github.action_path }}/download-previous-artifacts.cs" "${{ toJSON(inputs) }}" command: run "${{ github.action_path }}/download-previous-artifacts.cs"

View File

@@ -28,7 +28,8 @@ Console.WriteLine("Hello, World!");
// Console.WriteLine(JsonSerializer.Serialize(args)); // Console.WriteLine(JsonSerializer.Serialize(args));
string jsonInput = args.Length > 0 ? args[0] : "{}"; //string jsonInput = args.Length > 0 ? args[0] : "{}";
string jsonInput = Environment.GetEnvironmentVariable("INPUTS") ?? "{}";
Console.WriteLine($"JSON Input: {jsonInput}"); Console.WriteLine($"JSON Input: {jsonInput}");
byte[] jsonBytes = Encoding.UTF8.GetBytes(jsonInput); byte[] jsonBytes = Encoding.UTF8.GetBytes(jsonInput);
using MemoryStream memoryStream = new(jsonBytes); using MemoryStream memoryStream = new(jsonBytes);