Skip to content

Commit 80bce38

Browse files
authored
[internal] Update GitHub Actions workflow files (#185)
1 parent 4d85419 commit 80bce38

File tree

14 files changed

+423
-173
lines changed

14 files changed

+423
-173
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
- name: Unshallow clone for tags
4343
run: git fetch --prune --unshallow --tags
4444
- name: Install Go
45-
uses: actions/setup-go@v2
45+
uses: actions/setup-go@v3
4646
with:
47-
go-version: ${{ env.GOVERSION }}
47+
go-version: 1.20.1
4848
- name: Install pulumictl
4949
uses: jaxxstorm/action-install-gh-release@v1.5.0
5050
with:
@@ -70,6 +70,10 @@ jobs:
7070
cache: gradle
7171
distribution: temurin
7272
java-version: ${{ env.JAVAVERSION }}
73+
- name: Setup Gradle
74+
uses: gradle/gradle-build-action@v2
75+
with:
76+
gradle-version: "7.6"
7377
- name: Download provider + tfgen binaries
7478
uses: actions/download-artifact@v2
7579
with:
@@ -139,9 +143,9 @@ jobs:
139143
- name: Unshallow clone for tags
140144
run: git fetch --prune --unshallow --tags
141145
- name: Install Go
142-
uses: actions/setup-go@v2
146+
uses: actions/setup-go@v3
143147
with:
144-
go-version: ${{ env.GOVERSION }}
148+
go-version: 1.20.1
145149
- name: Install pulumictl
146150
uses: jaxxstorm/action-install-gh-release@v1.5.0
147151
with:
@@ -178,12 +182,15 @@ jobs:
178182
with:
179183
path: ci-scripts
180184
repository: pulumi/scripts
185+
- name: Mark repo as safe directory
186+
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
187+
}}/pulumi-${{ env.PROVIDER }}
181188
- name: Unshallow clone for tags
182189
run: git fetch --prune --unshallow --tags
183190
- name: Install Go
184-
uses: actions/setup-go@v2
191+
uses: actions/setup-go@v3
185192
with:
186-
go-version: ${{ env.GOVERSION }}
193+
go-version: 1.20.1
187194
- name: Install pulumictl
188195
uses: jaxxstorm/action-install-gh-release@v1.5.0
189196
with:
@@ -211,12 +218,15 @@ jobs:
211218
with:
212219
path: ci-scripts
213220
repository: pulumi/scripts
221+
- name: Mark repo as safe directory
222+
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
223+
}}/pulumi-${{ env.PROVIDER }}
214224
- name: Unshallow clone for tags
215225
run: git fetch --prune --unshallow --tags
216226
- name: Install Go
217-
uses: actions/setup-go@v2
227+
uses: actions/setup-go@v3
218228
with:
219-
go-version: ${{ env.GOVERSION }}
229+
go-version: 1.20.1
220230
- name: Install pulumictl
221231
uses: jaxxstorm/action-install-gh-release@v1.5.0
222232
with:
@@ -245,9 +255,9 @@ jobs:
245255
- name: Unshallow clone for tags
246256
run: git fetch --prune --unshallow --tags
247257
- name: Install Go
248-
uses: actions/setup-go@v2
258+
uses: actions/setup-go@v3
249259
with:
250-
go-version: ${{ env.GOVERSION }}
260+
go-version: 1.20.1
251261
- name: Install pulumictl
252262
uses: jaxxstorm/action-install-gh-release@v1.5.0
253263
with:
@@ -304,9 +314,9 @@ jobs:
304314
- name: Unshallow clone for tags
305315
run: git fetch --prune --unshallow --tags
306316
- name: Install Go
307-
uses: actions/setup-go@v2
317+
uses: actions/setup-go@v3
308318
with:
309-
go-version: ${{ env.GOVERSION }}
319+
go-version: 1.20.1
310320
- name: Install pulumictl
311321
uses: jaxxstorm/action-install-gh-release@v1.5.0
312322
with:
@@ -355,9 +365,9 @@ jobs:
355365
- name: Unshallow clone for tags
356366
run: git fetch --prune --unshallow --tags
357367
- name: Install Go
358-
uses: actions/setup-go@v2
368+
uses: actions/setup-go@v3
359369
with:
360-
go-version: ${{ env.GOVERSION }}
370+
go-version: 1.20.1
361371
- name: Install pulumictl
362372
uses: jaxxstorm/action-install-gh-release@v1.5.0
363373
with:
@@ -370,6 +380,10 @@ jobs:
370380
cache: gradle
371381
distribution: temurin
372382
java-version: ${{ env.JAVAVERSION }}
383+
- name: Setup Gradle
384+
uses: gradle/gradle-build-action@v2
385+
with:
386+
gradle-version: "7.6"
373387
- name: Download java SDK
374388
uses: actions/download-artifact@v2
375389
with:
@@ -402,9 +416,9 @@ jobs:
402416
- name: Unshallow clone for tags
403417
run: git fetch --prune --unshallow --tags
404418
- name: Install Go
405-
uses: actions/setup-go@v2
419+
uses: actions/setup-go@v3
406420
with:
407-
go-version: ${{ env.GOVERSION }}
421+
go-version: 1.20.1
408422
- name: Install pulumictl
409423
uses: jaxxstorm/action-install-gh-release@v1.5.0
410424
with:
@@ -478,9 +492,9 @@ jobs:
478492
- name: Unshallow clone for tags
479493
run: git fetch --prune --unshallow --tags
480494
- name: Install Go
481-
uses: actions/setup-go@v2
495+
uses: actions/setup-go@v3
482496
with:
483-
go-version: ${{ env.GOVERSION }}
497+
go-version: 1.20.1
484498
- name: Install pulumictl
485499
uses: jaxxstorm/action-install-gh-release@v1.5.0
486500
with:
@@ -506,6 +520,10 @@ jobs:
506520
cache: gradle
507521
distribution: temurin
508522
java-version: ${{ env.JAVAVERSION }}
523+
- name: Setup Gradle
524+
uses: gradle/gradle-build-action@v2
525+
with:
526+
gradle-version: "7.6"
509527
- name: Download provider + tfgen binaries
510528
uses: actions/download-artifact@v2
511529
with:

.github/workflows/master.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
- name: Unshallow clone for tags
4343
run: git fetch --prune --unshallow --tags
4444
- name: Install Go
45-
uses: actions/setup-go@v2
45+
uses: actions/setup-go@v3
4646
with:
47-
go-version: ${{ env.GOVERSION }}
47+
go-version: 1.20.1
4848
- name: Install pulumictl
4949
uses: jaxxstorm/action-install-gh-release@v1.5.0
5050
with:
@@ -70,6 +70,10 @@ jobs:
7070
cache: gradle
7171
distribution: temurin
7272
java-version: ${{ env.JAVAVERSION }}
73+
- name: Setup Gradle
74+
uses: gradle/gradle-build-action@v2
75+
with:
76+
gradle-version: "7.6"
7377
- name: Download provider + tfgen binaries
7478
uses: actions/download-artifact@v2
7579
with:
@@ -139,9 +143,9 @@ jobs:
139143
- name: Unshallow clone for tags
140144
run: git fetch --prune --unshallow --tags
141145
- name: Install Go
142-
uses: actions/setup-go@v2
146+
uses: actions/setup-go@v3
143147
with:
144-
go-version: ${{ env.GOVERSION }}
148+
go-version: 1.20.1
145149
- name: Install pulumictl
146150
uses: jaxxstorm/action-install-gh-release@v1.5.0
147151
with:
@@ -178,12 +182,15 @@ jobs:
178182
with:
179183
path: ci-scripts
180184
repository: pulumi/scripts
185+
- name: Mark repo as safe directory
186+
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
187+
}}/pulumi-${{ env.PROVIDER }}
181188
- name: Unshallow clone for tags
182189
run: git fetch --prune --unshallow --tags
183190
- name: Install Go
184-
uses: actions/setup-go@v2
191+
uses: actions/setup-go@v3
185192
with:
186-
go-version: ${{ env.GOVERSION }}
193+
go-version: 1.20.1
187194
- name: Install pulumictl
188195
uses: jaxxstorm/action-install-gh-release@v1.5.0
189196
with:
@@ -211,12 +218,15 @@ jobs:
211218
with:
212219
path: ci-scripts
213220
repository: pulumi/scripts
221+
- name: Mark repo as safe directory
222+
run: git config --global --add safe.directory /__w/pulumi-${{ env.PROVIDER
223+
}}/pulumi-${{ env.PROVIDER }}
214224
- name: Unshallow clone for tags
215225
run: git fetch --prune --unshallow --tags
216226
- name: Install Go
217-
uses: actions/setup-go@v2
227+
uses: actions/setup-go@v3
218228
with:
219-
go-version: ${{ env.GOVERSION }}
229+
go-version: 1.20.1
220230
- name: Install pulumictl
221231
uses: jaxxstorm/action-install-gh-release@v1.5.0
222232
with:
@@ -245,9 +255,9 @@ jobs:
245255
- name: Unshallow clone for tags
246256
run: git fetch --prune --unshallow --tags
247257
- name: Install Go
248-
uses: actions/setup-go@v2
258+
uses: actions/setup-go@v3
249259
with:
250-
go-version: ${{ env.GOVERSION }}
260+
go-version: 1.20.1
251261
- name: Install pulumictl
252262
uses: jaxxstorm/action-install-gh-release@v1.5.0
253263
with:
@@ -304,9 +314,9 @@ jobs:
304314
- name: Unshallow clone for tags
305315
run: git fetch --prune --unshallow --tags
306316
- name: Install Go
307-
uses: actions/setup-go@v2
317+
uses: actions/setup-go@v3
308318
with:
309-
go-version: ${{ env.GOVERSION }}
319+
go-version: 1.20.1
310320
- name: Install pulumictl
311321
uses: jaxxstorm/action-install-gh-release@v1.5.0
312322
with:
@@ -355,9 +365,9 @@ jobs:
355365
- name: Unshallow clone for tags
356366
run: git fetch --prune --unshallow --tags
357367
- name: Install Go
358-
uses: actions/setup-go@v2
368+
uses: actions/setup-go@v3
359369
with:
360-
go-version: ${{ env.GOVERSION }}
370+
go-version: 1.20.1
361371
- name: Install pulumictl
362372
uses: jaxxstorm/action-install-gh-release@v1.5.0
363373
with:
@@ -370,6 +380,10 @@ jobs:
370380
cache: gradle
371381
distribution: temurin
372382
java-version: ${{ env.JAVAVERSION }}
383+
- name: Setup Gradle
384+
uses: gradle/gradle-build-action@v2
385+
with:
386+
gradle-version: "7.6"
373387
- name: Download java SDK
374388
uses: actions/download-artifact@v2
375389
with:
@@ -402,9 +416,9 @@ jobs:
402416
- name: Unshallow clone for tags
403417
run: git fetch --prune --unshallow --tags
404418
- name: Install Go
405-
uses: actions/setup-go@v2
419+
uses: actions/setup-go@v3
406420
with:
407-
go-version: ${{ env.GOVERSION }}
421+
go-version: 1.20.1
408422
- name: Install pulumictl
409423
uses: jaxxstorm/action-install-gh-release@v1.5.0
410424
with:
@@ -478,9 +492,9 @@ jobs:
478492
- name: Unshallow clone for tags
479493
run: git fetch --prune --unshallow --tags
480494
- name: Install Go
481-
uses: actions/setup-go@v2
495+
uses: actions/setup-go@v3
482496
with:
483-
go-version: ${{ env.GOVERSION }}
497+
go-version: 1.20.1
484498
- name: Install pulumictl
485499
uses: jaxxstorm/action-install-gh-release@v1.5.0
486500
with:
@@ -506,6 +520,10 @@ jobs:
506520
cache: gradle
507521
distribution: temurin
508522
java-version: ${{ env.JAVAVERSION }}
523+
- name: Setup Gradle
524+
uses: gradle/gradle-build-action@v2
525+
with:
526+
gradle-version: "7.6"
509527
- name: Download provider + tfgen binaries
510528
uses: actions/download-artifact@v2
511529
with:

0 commit comments

Comments
 (0)