Skip to content

Commit f7d3e12

Browse files
second attempt to switch to run_id for release number generation (#7981)
1 parent 35b2bdb commit f7d3e12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ubuntu-win-generation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,13 @@ jobs:
8181
8282
- name: Build image
8383
run: |
84+
$ResourcesNamePrefix = ${{ github.run_id }} % [System.UInt32]::MaxValue
8485
./images.CI/linux-and-win/build-image.ps1 `
8586
-TemplatePath ${{ env.TemplatePath }} `
8687
-ClientId ${{ secrets.CLIENT_ID }} `
8788
-ClientSecret ${{ secrets.CLIENT_SECRET }} `
8889
-Location ${{ secrets.AZURE_LOCATION }} `
89-
-ResourcesNamePrefix ${{ github.run_number }} `
90+
-ResourcesNamePrefix $ResourcesNamePrefix `
9091
-ResourceGroup ${{ secrets.AZURE_RESOURCE_GROUP }} `
9192
-StorageAccount ${{ secrets.AZURE_STORAGE_ACCOUNT }} `
9293
-SubscriptionId ${{ secrets.AZURE_SUBSCRIPTION }} `
@@ -112,8 +113,9 @@ jobs:
112113
113114
- name: Create release for VM deployment
114115
run: |
116+
$BuildId = ${{ github.run_id }} % [System.UInt32]::MaxValue
115117
./images.CI/linux-and-win/create-release.ps1 `
116-
-BuildId ${{ github.run_number }} `
118+
-BuildId $BuildId `
117119
-Organization ${{ secrets.RELEASE_TARGET_ORGANIZATION }} `
118120
-DefinitionId ${{ secrets.RELEASE_TARGET_DEFINITION_ID }} `
119121
-Project ${{ secrets.RELEASE_TARGET_PROJECT }} `

0 commit comments

Comments
 (0)