mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
second attempt to switch to run_id for release number generation (#7981)
This commit is contained in:
6
.github/workflows/ubuntu-win-generation.yml
vendored
6
.github/workflows/ubuntu-win-generation.yml
vendored
@@ -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 }} `
|
||||
|
||||
Reference in New Issue
Block a user