Commit 2651334 1 parent 6407933 commit 2651334 Copy full SHA for 2651334
File tree 10 files changed +50
-11
lines changed
10 files changed +50
-11
lines changed Original file line number Diff line number Diff line change 1
- name : Download binary assets
2
- description : Downloads the provider and tfgen binaries to `bin/`.
1
+ name : Download the provider binary
2
+ description : Downloads the provider binary to `bin/`.
3
3
4
4
runs :
5
5
using : " composite"
6
6
steps :
7
- - name : Download provider + tfgen binaries
7
+
8
+ - name : Download pulumi-resource-keycloak
8
9
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
9
10
with :
10
- name : keycloak-provider .tar.gz
11
+ pattern : pulumi-resource- keycloak-*-linux-amd64 .tar.gz
11
12
path : ${{ github.workspace }}/bin
12
- - name : Untar provider binaries
13
+ merge-multiple : true
14
+
15
+ - name : Untar pulumi-resource-keycloak
16
+ shell : bash
17
+ run : |
18
+ tar -zxf ${{ github.workspace }}/bin/*amd64.tar.gz -C ${{ github.workspace}}/bin
19
+
20
+ - name : Mark pulumi-resource-keycloak as executable
13
21
shell : bash
14
22
run : |
15
- tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin
16
23
find ${{ github.workspace }} -name "pulumi-*-keycloak" -print -exec chmod +x {} \;
Original file line number Diff line number Diff line change
1
+ name : Download the tfgen binary
2
+ description : Downloads the tfgen binary to `bin/`.
3
+
4
+ runs :
5
+ using : " composite"
6
+ steps :
7
+
8
+ - name : Download pulumi-tfgen-keycloak
9
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
10
+ with :
11
+ name : pulumi-tfgen-keycloak
12
+ path : ${{ github.workspace }}/bin
13
+
14
+ - name : Ensure pulumi-tfgen-keycloak is executable
15
+ shell : bash
16
+ run : |
17
+ find ${{ github.workspace }} -name "pulumi-*-keycloak" -print -exec chmod +x {} \;
Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
env :
16
16
PROVIDER_VERSION : ${{ inputs.version }}
17
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17
18
strategy :
18
19
fail-fast : true
19
20
matrix :
Original file line number Diff line number Diff line change 61
61
tools : pulumictl, pulumicli, ${{ matrix.language }}
62
62
- name : Prepare local workspace
63
63
run : make prepare_local_workspace
64
- - name : Download bin
65
- uses : ./.github/actions/download-bin
64
+ - name : Download tfgen
65
+ uses : ./.github/actions/download-tfgen
66
66
- name : Update path
67
67
run : echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
68
68
- name : Restore makefile progress
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ jobs:
134
134
name : test
135
135
needs :
136
136
- prerequisites
137
+ - build_provider
137
138
- build_sdk
138
139
permissions :
139
140
contents : read
Original file line number Diff line number Diff line change 75
75
name : test
76
76
needs :
77
77
- prerequisites
78
+ - build_provider
78
79
- build_sdk
79
80
permissions :
80
81
contents : read
Original file line number Diff line number Diff line change 96
96
97
97
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes.
98
98
99
- - name : Upload bin
100
- uses : ./.github/actions/upload-bin
99
+ - name : Upload pulumi-tfgen-keycloak
100
+ uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
101
+ with :
102
+ name : pulumi-tfgen-keycloak
103
+ path : ${{ github.workspace }}/bin/pulumi-tfgen-keycloak
104
+ retention-days : 30
101
105
102
106
- name : Upload schema-embed.json
103
107
uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
Original file line number Diff line number Diff line change 81
81
name : test
82
82
needs :
83
83
- prerequisites
84
+ - build_provider
84
85
- build_sdk
85
86
permissions :
86
87
contents : read
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ jobs:
123
123
name : test
124
124
needs :
125
125
- prerequisites
126
+ - build_provider
126
127
- build_sdk
127
128
permissions :
128
129
contents : read
Original file line number Diff line number Diff line change @@ -138,11 +138,14 @@ apply_patches() {
138
138
# Iterating over the patches folder in sorted order,
139
139
# apply the patch using a 3-way merge strategy. This mirrors the default behavior of 'git merge'
140
140
cd upstream
141
+ # Allow directory to be empty
142
+ shopt -s nullglob
141
143
for patch in ../patches/* .patch; do
142
144
if ! git apply --3way " ${patch} " --allow-empty; then
143
145
err_failed_to_apply " $( basename " ${patch} " ) "
144
146
fi
145
147
done
148
+ shopt -u nullglob
146
149
}
147
150
148
151
clean_rebases () {
@@ -227,13 +230,16 @@ checkout() {
227
230
# Create a new branch 'pulumi/patch-checkout' which will contain the commits for each patch
228
231
git checkout -B pulumi/patch-checkout
229
232
233
+ # Allow directory to be empty
234
+ shopt -s nullglob
230
235
for patch in ../patches/* .patch; do
231
236
if ! git am --3way " ${patch} " ; then
232
237
err_failed_to_apply " $( basename " ${patch} " ) "
233
238
fi
234
239
done
240
+ shopt -u nullglob
235
241
236
- cat << EOF
242
+ cat << EOF
237
243
238
244
The patches have been checked out as commits in the './upstream' repository.
239
245
The 'pulumi/patch-checkout' branch is pointing to the last patch.
You can’t perform that action at this time.
0 commit comments