We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2793f9e commit 3f6f577Copy full SHA for 3f6f577
1 file changed
src/ContentProcessorAPI/samples/schemas/register_schema.ps1
@@ -86,6 +86,13 @@ foreach ($entry in $schemaEntries) {
86
$id = $responseJson.Id
87
$desc = $responseJson.Description
88
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
+ }
96
}
97
else {
98
Write-Error "Failed to upload '$schemaFile'. HTTP Status: $httpStatusCode"
0 commit comments