Skip to content

Commit 31a84e4

Browse files
committed
add script
1 parent 50b1e07 commit 31a84e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Actions/DetermineSecrets/DetermineSecrets.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ foreach($secret in ($getSecrets.Split(',') | Select-Object -Unique)) {
9191
# Calculate output for secrets
9292
# one output called FORMATSTR with the content: {{"secret1":{0},"secret2":{1},"secret3":{2}}}
9393
# and one environment variable per secret called S0, S1, S2 with the name of the GitHub Secret (or Azure DevOps secret) to look for
94-
if ($secretsCollection.Count -gt 32) {
94+
if ($script:secretsCollection.Count -gt 32) {
9595
throw "Maximum number of secrets exceeded."
9696
}
9797

9898
$cnt = 0
9999
$formatArr = @()
100-
foreach($secret in $secretsCollection) {
100+
foreach($secret in $script:secretsCollection) {
101101
$formatArr += @("""$Secret"":{$cnt}")
102102
Add-Content -Encoding UTF8 -Path $ENV:GITHUB_ENV -Value "S$cnt=$($secretNames[$secret])"
103103
Write-Host "S$cnt=$($secretNames[$secret])"

0 commit comments

Comments
 (0)