28
28
- name : Checkout
29
29
uses : actions/checkout@v3
30
30
- name : Set up node
31
- uses : actions/setup-node@v3
31
+ uses : actions/setup-node@v4
32
32
with :
33
33
node-version-file : .nvmrc
34
34
cache : yarn
43
43
- name : Summary
44
44
run : cat implementations/${{ matrix.workspace }}/README.md >> $GITHUB_STEP_SUMMARY
45
45
- name : Upload audit report
46
- uses : actions/upload-artifact@v3
46
+ uses : actions/upload-artifact@v4
47
47
with :
48
48
name : audit-reports
49
49
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -76,14 +76,14 @@ jobs:
76
76
- name : Set up docker buildx
77
77
uses : docker/setup-buildx-action@v2
78
78
- name : Set up node
79
- uses : actions/setup-node@v3
79
+ uses : actions/setup-node@v4
80
80
with :
81
81
node-version-file : .nvmrc
82
82
cache : yarn
83
83
- name : Install
84
84
run : yarn install --immutable
85
85
- name : Bake
86
- uses : docker/bake-action@v2
86
+ uses : docker/bake-action@v6
87
87
with :
88
88
workdir : implementations/${{ matrix.workspace }}
89
89
load : true # load image into docker, otherwise `docker compose up` will rebuild
97
97
- name : Summary
98
98
run : cat implementations/${{ matrix.workspace }}/README.md >> $GITHUB_STEP_SUMMARY
99
99
- name : Upload audit report
100
- uses : actions/upload-artifact@v3
100
+ uses : actions/upload-artifact@v4
101
101
with :
102
102
name : audit-reports
103
103
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -124,7 +124,7 @@ jobs:
124
124
- name : Checkout
125
125
uses : actions/checkout@v3
126
126
- name : Set up node
127
- uses : actions/setup-node@v3
127
+ uses : actions/setup-node@v4
128
128
with :
129
129
node-version-file : .nvmrc
130
130
cache : yarn
@@ -135,7 +135,7 @@ jobs:
135
135
- name : Summary
136
136
run : cat implementations/${{ matrix.workspace.name }}/README.md >> $GITHUB_STEP_SUMMARY
137
137
- name : Upload audit report
138
- uses : actions/upload-artifact@v3
138
+ uses : actions/upload-artifact@v4
139
139
with :
140
140
name : audit-reports
141
141
# > If multiple paths are provided as input, the least common ancestor of all the search paths will be used as the root directory of the artifact.
@@ -158,16 +158,32 @@ jobs:
158
158
steps :
159
159
- name : Checkout
160
160
uses : actions/checkout@v3
161
+ with :
162
+ token : ${{secrets.BOT_GITHUB_TOKEN}}
161
163
- name : Download audit reports
162
- uses : actions/download-artifact@v3
164
+ uses : actions/download-artifact@v4
163
165
with :
164
166
name : audit-reports
165
167
- name : Render servers table
166
168
run : node scripts/render-servers-table.mjs
169
+ - name : Diff
170
+ run : git diff --pretty
171
+ - name : Commit
172
+ if : github.ref != 'refs/heads/main'
173
+ uses : stefanzweifel/git-auto-commit-action@v5
174
+ with :
175
+ commit_message : ' docs(implementations): audit report'
176
+ commit_user_name : theguild-bot
177
+ commit_user_email :
[email protected]
178
+ commit_author :
theguild-bot <[email protected] > # dont use the actor as an author
167
179
- name : Create PR
180
+ if : github.ref == 'refs/heads/main'
168
181
uses : peter-evans/create-pull-request@v7
169
182
with :
170
- branch : audit-report/${{ github.ref_name }}
183
+ token : ${{secrets.BOT_GITHUB_TOKEN}}
184
+ branch : audit-report
171
185
title : Audit Report
172
- body : New audit report available.
186
+ body : New audit report available
173
187
commit-message : ' docs(implementations): audit report'
188
+ committer :
theguild-bot <[email protected] >
189
+ author :
theguild-bot <[email protected] > # dont use the actor as an author
0 commit comments