Skip to content

Commit 525e7e6

Browse files
committed
use specific runner versions
1 parent 480575d commit 525e7e6

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

.azure/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
displayName: ''
2727
strategy:
2828
matrix:
29-
'ubuntu-latest':
30-
imageName: 'ubuntu-latest'
31-
'macos-latest':
29+
'ubuntu-24.04':
30+
imageName: 'ubuntu-24.04'
31+
'macos-15':
3232
imageName: 'macos-15'
33-
'windows-latest':
34-
imageName: 'windows-latest'
33+
'windows-2025':
34+
imageName: 'windows-2025'
3535

3636
pool:
3737
vmImage: $(imageName)

.azure/example-10.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stages:
1414
- job: GitVersion_v6_cross_stage_producer
1515
displayName: GitVersion v6 (cross stage producer)
1616
pool:
17-
vmImage: ubuntu-latest
17+
vmImage: ubuntu-24.04
1818
steps:
1919
- checkout: self
2020
fetchDepth: 0
@@ -40,7 +40,7 @@ stages:
4040
variables:
4141
myvar_fullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.fullSemVer'] ]
4242
pool:
43-
vmImage: ubuntu-latest
43+
vmImage: ubuntu-24.04
4444
steps:
4545
- pwsh: |
4646
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)"
@@ -71,7 +71,7 @@ stages:
7171
variables:
7272
myvar_GitVersion_FullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.GitVersion_FullSemVer'] ]
7373
pool:
74-
vmImage: ubuntu-latest
74+
vmImage: ubuntu-24.04
7575
steps:
7676
- pwsh: |
7777
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $(myvar_GitVersion_FullSemVer)"

.azure/example-8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- job: GitVersion_v6_same_job
1212
displayName: GitVersion v6 (same job)
1313
pool:
14-
vmImage: ubuntu-latest
14+
vmImage: ubuntu-24.04
1515
steps:
1616
- checkout: self
1717
fetchDepth: 0

.azure/example-9.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- job: GitVersion_v6_cross_job
1212
displayName: GitVersion v6 (cross job)
1313
pool:
14-
vmImage: ubuntu-latest
14+
vmImage: ubuntu-24.04
1515
steps:
1616
- checkout: self
1717
fetchDepth: 0
@@ -35,7 +35,7 @@ jobs:
3535
variables:
3636
myvar_fullSemVer: $[ dependencies.GitVersion_v6_cross_job.outputs['version_step.fullSemVer'] ]
3737
pool:
38-
vmImage: ubuntu-latest
38+
vmImage: ubuntu-24.04
3939
steps:
4040
- pwsh: |
4141
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)"
@@ -64,7 +64,7 @@ jobs:
6464
variables:
6565
myvar_GitVersion_FullSemVer: $[ dependencies.GitVersion_v6_cross_job.outputs['version_step.GitVersion_FullSemVer'] ]
6666
pool:
67-
vmImage: ubuntu-latest
67+
vmImage: ubuntu-24.04
6868
steps:
6969
- pwsh: |
7070
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $(myvar_GitVersion_FullSemVer)"

.github/workflows/checkout-path.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
jobs:
1818
build:
1919

20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ${{ matrix.os }}
2323
strategy:
2424
matrix:
25-
os: [ windows-latest, ubuntu-latest, macos-15 ]
25+
os: [ windows-2025, ubuntu-24.04, macos-15 ]
2626
fail-fast: false
2727
steps:
2828
- uses: actions/checkout@v4
@@ -95,7 +95,7 @@ jobs:
9595
echo "FullSemVer (steps.gitversion.outputs.GitVersion_FullSemVer) : ${{ steps.gitversion.outputs.GitVersion_FullSemVer }}"
9696
name: Use variables and output
9797
- name: Check for changes
98-
if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
98+
if: matrix.os == 'ubuntu-24.04' && github.event_name == 'push'
9999
id: status
100100
run: |
101101
if ($null -ne (git status --porcelain)) { echo "has_changes=1"; echo "has_changes=1" >> $env:GITHUB_OUTPUT }

.github/workflows/example-8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defaults:
99
jobs:
1010
GitVersion_v6_same_job:
1111
name: GitVersion v6 (same job)
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4

.github/workflows/example-9.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defaults:
99
jobs:
1010
GitVersion_v6_cross_job:
1111
name: GitVersion v6 (cross job)
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-24.04
1313
outputs:
1414
branchName: ${{ steps.version_step.outputs.branchName }}
1515
fullSemVer: ${{ steps.version_step.outputs.fullSemVer }}
@@ -34,7 +34,7 @@ jobs:
3434
GitVersion_v6_cross_job_consumer_without_prefix:
3535
name: GitVersion v6 (cross job consumer) - without prefix
3636
needs: GitVersion_v6_cross_job
37-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-24.04
3838
if: contains(needs.GitVersion_v6_cross_job.outputs['branchName'], 'main')
3939
env:
4040
myvar_fullSemVer: ${{ needs.GitVersion_v6_cross_job.outputs.fullSemVer }}
@@ -90,7 +90,7 @@ jobs:
9090
GitVersion_v6_cross_job_consumer_with_prefix:
9191
name: GitVersion v6 (cross job consumer) - with prefix
9292
needs: GitVersion_v6_cross_job
93-
runs-on: ubuntu-latest
93+
runs-on: ubuntu-24.04
9494
if: contains(needs.GitVersion_v6_cross_job.outputs['GitVersion_BranchName'], 'main')
9595
env:
9696
myvar_GitVersion_FullSemVer: ${{ needs.GitVersion_v6_cross_job.outputs.GitVersion_FullSemVer }}

.github/workflows/examples-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defaults:
1111
jobs:
1212
update-examples-version:
1313
if: ${{ github.event_name == 'repository_dispatch' }}
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [ ubuntu-latest ]
15+
os: [ ubuntu-24.04 ]
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
16-
os: [ ubuntu-latest ]
16+
os: [ ubuntu-24.04 ]
1717
steps:
1818
- uses: actions/checkout@v4
1919
with:

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
stale:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- uses: actions/stale@v9
1717
with:

docs/examples/azure/gitversion/execute.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ jobs:
273273
- job: GitVersion_v6_same_job
274274
displayName: GitVersion v6 (same job)
275275
pool:
276-
vmImage: ubuntu-latest
276+
vmImage: ubuntu-24.04
277277
steps:
278278
- checkout: self
279279
fetchDepth: 0
@@ -343,7 +343,7 @@ jobs:
343343
- job: GitVersion_v6_cross_job
344344
displayName: GitVersion v6 (cross job)
345345
pool:
346-
vmImage: ubuntu-latest
346+
vmImage: ubuntu-24.04
347347
steps:
348348
- checkout: self
349349
fetchDepth: 0
@@ -367,7 +367,7 @@ jobs:
367367
variables:
368368
myvar_fullSemVer: $[ dependencies.GitVersion_v6_cross_job.outputs['version_step.fullSemVer'] ]
369369
pool:
370-
vmImage: ubuntu-latest
370+
vmImage: ubuntu-24.04
371371
steps:
372372
- pwsh: |
373373
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)"
@@ -396,7 +396,7 @@ jobs:
396396
variables:
397397
myvar_GitVersion_FullSemVer: $[ dependencies.GitVersion_v6_cross_job.outputs['version_step.GitVersion_FullSemVer'] ]
398398
pool:
399-
vmImage: ubuntu-latest
399+
vmImage: ubuntu-24.04
400400
steps:
401401
- pwsh: |
402402
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $(myvar_GitVersion_FullSemVer)"
@@ -434,7 +434,7 @@ stages:
434434
- job: GitVersion_v6_cross_stage_producer
435435
displayName: GitVersion v6 (cross stage producer)
436436
pool:
437-
vmImage: ubuntu-latest
437+
vmImage: ubuntu-24.04
438438
steps:
439439
- checkout: self
440440
fetchDepth: 0
@@ -460,7 +460,7 @@ stages:
460460
variables:
461461
myvar_fullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.fullSemVer'] ]
462462
pool:
463-
vmImage: ubuntu-latest
463+
vmImage: ubuntu-24.04
464464
steps:
465465
- pwsh: |
466466
echo "FullSemVer (myvar_fullSemVer) : $(myvar_fullSemVer)"
@@ -491,7 +491,7 @@ stages:
491491
variables:
492492
myvar_GitVersion_FullSemVer: $[ stageDependencies.GitVersion_v6_cross_stage.GitVersion_v6_cross_stage_producer.outputs['version_step.GitVersion_FullSemVer'] ]
493493
pool:
494-
vmImage: ubuntu-latest
494+
vmImage: ubuntu-24.04
495495
steps:
496496
- pwsh: |
497497
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $(myvar_GitVersion_FullSemVer)"

docs/examples/github/gitversion/execute.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ The action also creates environment variables of the form `${{ env.<outputName>
265265
jobs:
266266
GitVersion_v6_same_job:
267267
name: GitVersion v6 (same job)
268-
runs-on: ubuntu-latest
268+
runs-on: ubuntu-24.04
269269
steps:
270270
- name: Checkout
271271
uses: actions/checkout@v4
@@ -349,7 +349,7 @@ jobs:
349349
jobs:
350350
GitVersion_v6_cross_job:
351351
name: GitVersion v6 (cross job)
352-
runs-on: ubuntu-latest
352+
runs-on: ubuntu-24.04
353353
outputs:
354354
branchName: ${{ steps.version_step.outputs.branchName }}
355355
fullSemVer: ${{ steps.version_step.outputs.fullSemVer }}
@@ -374,7 +374,7 @@ jobs:
374374
GitVersion_v6_cross_job_consumer_without_prefix:
375375
name: GitVersion v6 (cross job consumer) - without prefix
376376
needs: GitVersion_v6_cross_job
377-
runs-on: ubuntu-latest
377+
runs-on: ubuntu-24.04
378378
if: contains(needs.GitVersion_v6_cross_job.outputs['branchName'], 'main')
379379
env:
380380
myvar_fullSemVer: ${{ needs.GitVersion_v6_cross_job.outputs.fullSemVer }}
@@ -430,7 +430,7 @@ jobs:
430430
GitVersion_v6_cross_job_consumer_with_prefix:
431431
name: GitVersion v6 (cross job consumer) - with prefix
432432
needs: GitVersion_v6_cross_job
433-
runs-on: ubuntu-latest
433+
runs-on: ubuntu-24.04
434434
if: contains(needs.GitVersion_v6_cross_job.outputs['GitVersion_BranchName'], 'main')
435435
env:
436436
myvar_GitVersion_FullSemVer: ${{ needs.GitVersion_v6_cross_job.outputs.GitVersion_FullSemVer }}

0 commit comments

Comments
 (0)