test
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user