From f7d3e12c85960eb30b11dee87e70b0392d948d19 Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:37:10 +0200 Subject: [PATCH] second attempt to switch to run_id for release number generation (#7981) --- .github/workflows/ubuntu-win-generation.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu-win-generation.yml b/.github/workflows/ubuntu-win-generation.yml index 96a19b47..c7944d53 100644 --- a/.github/workflows/ubuntu-win-generation.yml +++ b/.github/workflows/ubuntu-win-generation.yml @@ -81,12 +81,13 @@ jobs: - name: Build image run: | + $ResourcesNamePrefix = ${{ github.run_id }} % [System.UInt32]::MaxValue ./images.CI/linux-and-win/build-image.ps1 ` -TemplatePath ${{ env.TemplatePath }} ` -ClientId ${{ secrets.CLIENT_ID }} ` -ClientSecret ${{ secrets.CLIENT_SECRET }} ` -Location ${{ secrets.AZURE_LOCATION }} ` - -ResourcesNamePrefix ${{ github.run_number }} ` + -ResourcesNamePrefix $ResourcesNamePrefix ` -ResourceGroup ${{ secrets.AZURE_RESOURCE_GROUP }} ` -StorageAccount ${{ secrets.AZURE_STORAGE_ACCOUNT }} ` -SubscriptionId ${{ secrets.AZURE_SUBSCRIPTION }} ` @@ -112,8 +113,9 @@ jobs: - name: Create release for VM deployment run: | + $BuildId = ${{ github.run_id }} % [System.UInt32]::MaxValue ./images.CI/linux-and-win/create-release.ps1 ` - -BuildId ${{ github.run_number }} ` + -BuildId $BuildId ` -Organization ${{ secrets.RELEASE_TARGET_ORGANIZATION }} ` -DefinitionId ${{ secrets.RELEASE_TARGET_DEFINITION_ID }} ` -Project ${{ secrets.RELEASE_TARGET_PROJECT }} `