File tree 20 files changed +54
-71
lines changed
20 files changed +54
-71
lines changed Original file line number Diff line number Diff line change 5
5
using : " composite"
6
6
steps :
7
7
- name : Download provider + tfgen binaries
8
- uses : actions/download-artifact@v4
8
+ uses : actions/download-artifact@v4.1.8
9
9
with :
10
10
name : xyz-provider.tar.gz
11
11
path : ${{ github.workspace }}/bin
Original file line number Diff line number Diff line change 10
10
using : " composite"
11
11
steps :
12
12
- name : Download ${{ inputs.language }} SDK
13
- uses : actions/download-artifact@v4
13
+ uses : actions/download-artifact@v4.1.8
14
14
with :
15
15
name : ${{ inputs.language }}-sdk.tar.gz
16
16
path : ${{ github.workspace}}/sdk/
Original file line number Diff line number Diff line change 8
8
shell : bash
9
9
run : tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-xyz pulumi-tfgen-xyz
10
10
- name : Upload artifacts
11
- uses : actions/upload-artifact@v4
11
+ uses : actions/upload-artifact@v4.4.3
12
12
with :
13
13
name : xyz-provider.tar.gz
14
14
path : ${{ github.workspace }}/bin/provider.tar.gz
Original file line number Diff line number Diff line change 13
13
shell : bash
14
14
run : tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} .
15
15
- name : Upload artifacts
16
- uses : actions/upload-artifact@v4
16
+ uses : actions/upload-artifact@v4.4.3
17
17
with :
18
18
name : ${{ inputs.language }}-sdk.tar.gz
19
19
path : ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz
Original file line number Diff line number Diff line change 30
30
arch : amd64
31
31
steps :
32
32
- name : Checkout Repo
33
- uses : actions/checkout@v4
33
+ uses : actions/checkout@v4.2.2
34
34
with :
35
35
persist-credentials : false
36
36
- name : Setup tools
@@ -40,22 +40,19 @@ jobs:
40
40
- name : Prepare local workspace before restoring previously built
41
41
run : make prepare_local_workspace
42
42
- name : Download schema-embed.json
43
- uses : actions/download-artifact@v4
43
+ uses : actions/download-artifact@v4.1.8
44
44
with :
45
45
# Use a pattern to avoid failing if the artifact doesn't exist
46
46
pattern : schema-embed.*
47
47
# Avoid creating directories for each artifact
48
48
merge-multiple : true
49
49
path : provider/cmd/pulumi-resource-xyz/schema-embed.json
50
50
- name : Restore makefile progress
51
- uses : actions/download-artifact@v4
52
- with :
53
- name : prerequisites.make
54
- path : .make
51
+ run : make --touch provider schema
55
52
- name : Build & package provider
56
53
run : make provider_dist-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
57
54
- name : Upload artifacts
58
- uses : actions/upload-artifact@v4
55
+ uses : actions/upload-artifact@v4.4.3
59
56
with :
60
57
name : pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
61
58
path : bin/pulumi-resource-xyz-v${{ inputs.version }}-${{ matrix.platform.os }}-${{ matrix.platform.arch }}.tar.gz
Original file line number Diff line number Diff line change 40
40
- python
41
41
steps :
42
42
- name : Checkout Repo
43
- uses : actions/checkout@v4
43
+ uses : actions/checkout@v4.2.2
44
44
with :
45
45
persist-credentials : false
46
46
- name : Cache examples generation
60
60
- name : Update path
61
61
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
62
62
- name : Restore makefile progress
63
- uses : actions/download-artifact@v4
64
- with :
65
- name : prerequisites.make
66
- path : .make
63
+ run : make --touch provider schema
67
64
- name : Build SDK
68
65
run : make build_${{ matrix.language }}
69
66
- name : Check worktree clean
79
76
uses : ./.github/actions/upload-sdk
80
77
with :
81
78
language : ${{ matrix.language }}
82
- - name : Save makefile progress
83
- uses : actions/upload-artifact@v4
84
- with :
85
- name : build_${{ matrix.language }}.make
86
- path : .make
87
- include-hidden-files : true
Original file line number Diff line number Diff line change 30
30
runs-on : ubuntu-latest
31
31
steps :
32
32
- name : Checkout Repo
33
- uses : actions/checkout@v4
33
+ uses : actions/checkout@v4.2.2
34
34
with :
35
35
persist-credentials : false
36
36
- name : Setup tools
Original file line number Diff line number Diff line change 30
30
runs-on : ubuntu-latest
31
31
steps :
32
32
- name : Checkout Repo
33
- uses : actions/checkout@v4
33
+ uses : actions/checkout@v4.2.2
34
34
with :
35
35
persist-credentials : false
36
36
- name : Install go
Original file line number Diff line number Diff line change @@ -55,11 +55,11 @@ jobs:
55
55
tool-cache : false
56
56
swap-storage : false
57
57
- name : Checkout Repo
58
- uses : actions/checkout@v4
58
+ uses : actions/checkout@v4.2.2
59
59
with :
60
60
persist-credentials : false
61
61
- name : Configure AWS Credentials
62
- uses : aws-actions/configure-aws-credentials@v4
62
+ uses : aws-actions/configure-aws-credentials@v4.0.2
63
63
with :
64
64
aws-access-key-id : ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }}
65
65
aws-region : us-west-2
@@ -137,7 +137,7 @@ jobs:
137
137
PROVIDER_VERSION : ${{ needs.prerequisites.outputs.version }}
138
138
steps :
139
139
- name : Checkout Repo
140
- uses : actions/checkout@v4
140
+ uses : actions/checkout@v4.2.2
141
141
with :
142
142
persist-credentials : false
143
143
- name : Setup tools
@@ -153,10 +153,7 @@ jobs:
153
153
with :
154
154
language : ${{ matrix.language }}
155
155
- name : Restore makefile progress
156
- uses : actions/download-artifact@v4
157
- with :
158
- name : build_${{ matrix.language }}.make
159
- path : .make
156
+ run : make --touch provider schema build_${{ matrix.language }}
160
157
- name : Update path
161
158
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
162
159
- name : Install Python deps
Original file line number Diff line number Diff line change 79
79
PROVIDER_VERSION : ${{ needs.prerequisites.outputs.version }}
80
80
steps :
81
81
- name : Checkout Repo
82
- uses : actions/checkout@v4
82
+ uses : actions/checkout@v4.2.2
83
83
with :
84
84
persist-credentials : false
85
85
- name : Setup tools
95
95
with :
96
96
language : ${{ matrix.language }}
97
97
- name : Restore makefile progress
98
- uses : actions/download-artifact@v4
99
- with :
100
- name : build_${{ matrix.language }}.make
101
- path : .make
98
+ run : make --touch provider schema build_${{ matrix.language }}
102
99
- name : Update path
103
100
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
104
101
- name : Install Python deps
Original file line number Diff line number Diff line change 43
43
version : ${{ steps.provider-version.outputs.version }}
44
44
steps :
45
45
- name : Checkout Repo
46
- uses : actions/checkout@v4
46
+ uses : actions/checkout@v4.2.2
47
47
with :
48
48
persist-credentials : false
49
49
- uses : pulumi/provider-version-action@v1
77
77
schema-tools compare -r github://api.github.com/pulumi -p xyz -o "${{ inputs.default_branch }}" -n --local-path=provider/cmd/pulumi-resource-xyz/schema.json;
78
78
echo "$EOF";
79
79
} >> "$GITHUB_ENV"
80
- - name : Save makefile progress
81
- uses : actions/upload-artifact@v4
82
- with :
83
- name : prerequisites.make
84
- path : .make
85
- include-hidden-files : true
86
80
- if : inputs.is_pr && inputs.is_automated == false
87
81
name : Comment on PR with Details of Schema Check
88
- uses : thollander/actions-comment-pull-request@v2
82
+ uses : thollander/actions-comment-pull-request@v2.5.0
89
83
with :
90
84
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
85
comment_tag : schemaCheck
99
93
uses : ./.github/actions/upload-bin
100
94
101
95
- name : Upload schema-embed.json
102
- uses : actions/upload-artifact@v4
96
+ uses : actions/upload-artifact@v4.4.3
103
97
with :
104
98
name : schema-embed.json
105
99
path : provider/cmd/pulumi-resource-xyz/schema-embed.json
Original file line number Diff line number Diff line change 46
46
if : inputs.skipGoSdk && inputs.isPrerelease == false
47
47
run : echo "Can't skip Go SDK for stable releases. This is likely a bug in the calling workflow." && exit 1
48
48
- name : Checkout Repo
49
- uses : actions/checkout@v4
49
+ uses : actions/checkout@v4.2.2
50
50
with :
51
51
persist-credentials : false
52
52
- name : Setup tools
56
56
- name : Create dist directory
57
57
run : mkdir -p dist
58
58
- name : Download provider assets
59
- uses : actions/download-artifact@v4
59
+ uses : actions/download-artifact@v4.1.8
60
60
with :
61
61
pattern : pulumi-resource-xyz-v${{ inputs.version }}-*
62
62
path : dist
98
98
runs-on : ubuntu-latest
99
99
steps :
100
100
- name : Checkout Repo
101
- uses : actions/checkout@v4
101
+ uses : actions/checkout@v4.2.2
102
102
with :
103
103
# Persist credentials so we can push back to the repo
104
104
persist-credentials : true
@@ -139,7 +139,7 @@ jobs:
139
139
runs-on : ubuntu-latest
140
140
steps :
141
141
- name : Checkout Repo
142
- uses : actions/checkout@v4
142
+ uses : actions/checkout@v4.2.2
143
143
with :
144
144
persist-credentials : false
145
145
- name : Clean up release labels
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ jobs:
24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- name : Checkout Repo
27
- uses : actions/checkout@v4
27
+ uses : actions/checkout@v4.2.2
28
28
with :
29
29
persist-credentials : false
30
30
- name : Comment PR
31
- uses : thollander/actions-comment-pull-request@v2
31
+ uses : thollander/actions-comment-pull-request@v2.5.0
32
32
with :
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
34
message : >
Original file line number Diff line number Diff line change 85
85
PROVIDER_VERSION : ${{ needs.prerequisites.outputs.version }}
86
86
steps :
87
87
- name : Checkout Repo
88
- uses : actions/checkout@v4
88
+ uses : actions/checkout@v4.2.2
89
89
with :
90
90
persist-credentials : false
91
91
- name : Setup tools
@@ -101,10 +101,7 @@ jobs:
101
101
with :
102
102
language : ${{ matrix.language }}
103
103
- name : Restore makefile progress
104
- uses : actions/download-artifact@v4
105
- with :
106
- name : build_${{ matrix.language }}.make
107
- path : .make
104
+ run : make --touch provider schema build_${{ matrix.language }}
108
105
- name : Update path
109
106
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
110
107
- name : Install Python deps
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ jobs:
25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
- name : Checkout Repo
28
- uses : actions/checkout@v4
28
+ uses : actions/checkout@v4.2.2
29
29
with :
30
30
# Persist credentials so we can push a new branch.
31
31
persist-credentials : true
32
32
- name : Checkout repo
33
- uses : actions/checkout@v4
33
+ uses : actions/checkout@v4.2.2
34
34
with :
35
35
path : ci-mgmt
36
36
repository : pulumi/ci-mgmt
Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ jobs:
127
127
PROVIDER_VERSION : ${{ needs.prerequisites.outputs.version }}
128
128
steps :
129
129
- name : Checkout Repo
130
- uses : actions/checkout@v4
130
+ uses : actions/checkout@v4.2.2
131
131
with :
132
132
ref : ${{ env.PR_COMMIT_SHA }}
133
133
persist-credentials : false
134
134
- name : Checkout p/examples
135
135
if : matrix.testTarget == 'pulumiExamples'
136
- uses : actions/checkout@v4
136
+ uses : actions/checkout@v4.2.2
137
137
with :
138
138
repository : pulumi/examples
139
139
path : p-examples
@@ -150,10 +150,7 @@ jobs:
150
150
with :
151
151
language : ${{ matrix.language }}
152
152
- name : Restore makefile progress
153
- uses : actions/download-artifact@v4
154
- with :
155
- name : build_${{ matrix.language }}.make
156
- path : .make
153
+ run : make --touch provider schema build_${{ matrix.language }}
157
154
- name : Update path
158
155
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
159
156
- name : Install Python deps
Original file line number Diff line number Diff line change 49
49
required : false
50
50
type : boolean
51
51
default : false
52
+
53
+ permissions :
54
+ contents : write
55
+ issues : write
56
+ pull-requests : write
57
+
52
58
env :
53
- GH_TOKEN : ${{ secrets.PULUMI_BOT_TOKEN }}
59
+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets. PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
54
60
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
+
55
62
jobs :
56
63
upgrade_provider :
57
64
name : upgrade-provider
58
65
runs-on : ubuntu-latest
59
66
steps :
60
67
- name : Checkout Repo
61
- uses : actions/checkout@v4
68
+ uses : actions/checkout@v4.2.2
62
69
with :
63
70
persist-credentials : false
64
71
- name : Setup tools
Original file line number Diff line number Diff line change 22
22
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours.
23
23
- cron : 0 3 * * *
24
24
25
+ permissions :
26
+ contents : write
27
+ issues : write
28
+ pull-requests : write
29
+
25
30
env :
26
- GH_TOKEN : ${{ secrets.PULUMI_BOT_TOKEN }}
31
+ GH_TOKEN : ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets. PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }}
27
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+
28
34
jobs :
29
35
upgrade_provider :
30
36
name : upgrade-provider
31
37
runs-on : ubuntu-latest
32
38
steps :
33
39
- name : Checkout Repo
34
- uses : actions/checkout@v4
40
+ uses : actions/checkout@v4.2.2
35
41
with :
36
42
# Persist credentials so upgrade-provider can push a new branch.
37
43
persist-credentials : true
Original file line number Diff line number Diff line change 69
69
runs-on : ${{ matrix.runner }}
70
70
steps :
71
71
- name : Checkout Repo
72
- uses : actions/checkout@v4
72
+ uses : actions/checkout@v4.2.2
73
73
with :
74
74
persist-credentials : false
75
75
- name : Setup tools
Original file line number Diff line number Diff line change @@ -240,12 +240,12 @@ tfgen_no_deps: .make/schema
240
240
.make/schema : export PULUMI_CONVERT_EXAMPLES_CACHE_DIR := $(WORKING_DIR ) /.pulumi/examples-cache
241
241
.make/schema : export PULUMI_DISABLE_AUTOMATIC_PLUGIN_ACQUISITION := $(PULUMI_CONVERT )
242
242
.make/schema : export PULUMI_MISSING_DOCS_ERROR := $(PULUMI_MISSING_DOCS_ERROR )
243
- .make/schema : bin/$(TFGEN ) provider/resources.go provider/go.mod .make/install_plugins .make/upstream
243
+ .make/schema : bin/$(TFGEN ) .make/install_plugins .make/upstream
244
244
$(WORKING_DIR ) /bin/$(TFGEN ) schema --out provider/cmd/$(PROVIDER )
245
245
(cd provider && VERSION=$( VERSION_GENERIC) go generate cmd/$( PROVIDER) /main.go)
246
246
@touch $@
247
247
tfgen_build_only : bin/$(TFGEN )
248
- bin/$(TFGEN ) :
248
+ bin/$(TFGEN ) : provider/ * .go provider/go. * .make/upstream
249
249
(cd provider && go build $( PULUMI_PROVIDER_BUILD_PARALLELISM) -o $( WORKING_DIR) /bin/$( TFGEN) -ldflags " $( LDFLAGS_PROJ_VERSION) $( LDFLAGS_EXTRAS) " $( PROJECT) /$( PROVIDER_PATH) /cmd/$( TFGEN) )
250
250
.PHONY : tfgen schema tfgen_no_deps tfgen_build_only
251
251
You can’t perform that action at this time.
0 commit comments