Skip to content

Commit 6d577b1

Browse files
refactor: Remove redundant nested if block in job-deploy-windows.yml
The nested if was checking and assigning the same secret value that was just assigned in the else block above it, making it redundant. This was caused by commit de40f53 which unified the secret names, making the original fallback mechanism obsolete.
1 parent 1e9f011 commit 6d577b1

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

.github/workflows/job-deploy-windows.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ jobs:
271271
$EXP_AI_PROJECT_ID = $env:INPUT_AZURE_EXISTING_AIPROJECT_RESOURCE_ID
272272
} else {
273273
$EXP_AI_PROJECT_ID = "${{ secrets.AZURE_ENV_FOUNDRY_PROJECT_ID }}"
274-
if (-not $EXP_AI_PROJECT_ID) {
275-
$EXP_AI_PROJECT_ID = "${{ secrets.AZURE_ENV_FOUNDRY_PROJECT_ID }}"
276-
}
277274
}
278275
279276
Write-Host "AZURE_ENV_EXISTING_LOG_ANALYTICS_WORKSPACE_RID: $EXP_LOG_ANALYTICS_ID"

0 commit comments

Comments
 (0)