@@ -59,15 +59,28 @@ jobs:
59
59
name : Fetch secrets from ESC
60
60
uses : pulumi/esc-action@9eb774255b1a4afb7855678ae8d4a77359da0d9b
61
61
- name : Cache examples generation
62
- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
62
+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
63
63
with :
64
64
path : |
65
65
.pulumi/examples-cache
66
66
key : ${{ runner.os }}-${{ hashFiles('provider/go.sum') }}
67
- - name : Setup tools
68
- uses : ./.github/actions/setup-tools
67
+ - name : Setup mise
68
+ uses : jdx/mise-action@v3
69
69
with :
70
- tools : pulumictl, pulumicli, ${{ matrix.language }}
70
+ github_token : ${{ secrets.GITHUB_TOKEN }}
71
+ cache_key : " mise-{{platform}}-{{file_hash}}"
72
+ # only saving the cache in the prerequisites job
73
+ cache_save : false
74
+ - name : Setup Go Cache
75
+ if : matrix.language == 'go' || contains(matrix.language, 'go')
76
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
77
+ with :
78
+ cache-dependency-path : |
79
+ provider/*.sum
80
+ upstream/*.sum
81
+ sdk/go/*.sum
82
+ sdk/*.sum
83
+ *.sum
71
84
- name : Prepare local workspace
72
85
run : make prepare_local_workspace
73
86
env :
@@ -93,46 +106,8 @@ jobs:
93
106
sdk/nodejs/package.json
94
107
sdk/python/pyproject.toml
95
108
sdk/java/build.gradle
96
- - name : Commit Java SDK changes for migration to pulumi package gen-sdk
97
- if : failure() && steps.worktreeClean.outcome == 'failure' && matrix.language == 'java' && contains(github.actor, 'pulumi-bot') && github.event_name == 'pull_request'
98
- shell : bash
99
- run : >
100
- git diff --quiet -- sdk/java && echo "no changes to sdk/java" && exit
101
-
102
- git config --global user.email "[email protected] "
103
-
104
- git config --global user.name "pulumi-bot"
105
-
106
- # Stash local changes and check out the PR's branch directly.
107
-
108
- git stash
109
-
110
- git fetch
111
-
112
- git checkout "origin/$HEAD_REF"
113
-
114
- # Apply and add our changes, but don't commit any files we expect to
115
-
116
- # always change due to versioning.
117
-
118
- git stash pop
119
-
120
- git add sdk/java
121
-
122
- rm .pulumi-java-gen.version
123
-
124
- git add .pulumi-java-gen.version
125
-
126
- git commit -m "Commit Java changes for pulumi package sdk-gen"
127
-
128
- # Push with pulumi-bot credentials to trigger a re-run of the
129
- # workflow. https://github.com/orgs/community/discussions/25702
130
-
131
- git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
132
- # head_ref is untrusted so it's recommended to pass via env var to
133
- # avoid injections.
134
- env :
135
- HEAD_REF : ${{ github.head_ref }}
109
+ **/mise.lock
110
+ **/mise.*.lock
136
111
- name : Commit ${{ matrix.language }} SDK changes for Renovate
137
112
# If the worktree is dirty and this is a Renovate PR to bump
138
113
# dependencies, commit the updated SDK and push it back to the PR. The
0 commit comments