Skip to content

Commit

Permalink
Pin the major version explicitly in CI
Browse files Browse the repository at this point in the history
This ensures the major version always matches the major version generated into the makefile too - based on the .ci-mgmt.yaml config.

This is much more predictable behaviour than inferring from the branch name or PR labels. This utilises the new feature pulumi/provider-version-action#15, released in v1.6.0 of pulumi/provider-version-action
  • Loading branch information
danielrbradley committed Feb 6, 2025
1 parent c3885bd commit 68c78d6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- uses: #{{ .Config.ActionVersions.ProviderVersionAction }}#
id: provider-version
with:
major-version: #{{ .Config.MajorVersion }}#
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 0
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 6
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 5
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 4
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
id: provider-version
with:
major-version: 3
set-env: 'PROVIDER_VERSION'
- name: Cache examples generation
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
Expand Down

0 comments on commit 68c78d6

Please sign in to comment.