File tree Expand file tree Collapse file tree
src/ContentProcessorAPI/samples/schemas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ foreach ($entry in $schemaEntries) {
8686 $id = $responseJson.Id
8787 $desc = $responseJson.Description
8888 Write-Output " $desc 's Schema Id - $id "
89+
90+ # Set GitHub Actions output if GITHUB_OUTPUT environment variable exists
91+ if ($env: GITHUB_OUTPUT ) {
92+ # Create a safe variable name from the class name (lowercase, alphanumeric and underscores only)
93+ $safeName = $className.ToLower () -replace ' [^a-z0-9_]' , ' '
94+ " ${safeName} _schema_id=$id " | Out-File - FilePath $env: GITHUB_OUTPUT - Encoding utf8 - Append
95+ }
8996 }
9097 else {
9198 Write-Error " Failed to upload '$schemaFile '. HTTP Status: $httpStatusCode "
@@ -104,4 +111,4 @@ foreach ($entry in $schemaEntries) {
104111
105112 # Clean up the temporary JSON file
106113 Remove-Item - Path $tempJson - Force
107- }
114+ }
You can’t perform that action at this time.
0 commit comments