diff --git a/.github/workflows/VarReuseInJobs.yml b/.github/workflows/VarReuseInJobs.yml index 5113373..8208a16 100644 --- a/.github/workflows/VarReuseInJobs.yml +++ b/.github/workflows/VarReuseInJobs.yml @@ -16,7 +16,9 @@ jobs: uses: azure/powershell@v2 with: inlineScript: | - ./GHActionTest/FuncVar.ps1 + $RG = Get-AzResourceGroup -Name GitHubAction24 + $rgName = $RG.ResourceGroupName + Write-Output "rg_name=$rgName" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append azPSVersion: 'latest' use_resource_group: