File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,18 @@ runs:
202
202
with :
203
203
swift-version : ${{ steps.versions.outputs.SWIFT_VERSION }}
204
204
205
+ - name : Set swiftformat version
206
+ if : ${{ inputs.language == 'swift' }}
207
+ id : swiftformat-version
208
+ shell : bash
209
+ run : echo "SWIFTFORMAT_VERSION=0.54.0" >> $GITHUB_OUTPUT
210
+
205
211
- name : Checkout swiftformat
206
212
if : ${{ inputs.language == 'swift' }}
207
213
uses : actions/checkout@v4
208
214
with :
209
215
repository : nicklockwood/SwiftFormat
210
- ref : 0.53.0
216
+ ref : ${{ steps.swiftformat-version.outputs.SWIFTFORMAT_VERSION }}
211
217
path : swiftformat
212
218
213
219
- name : Cache the build folder
@@ -216,7 +222,7 @@ runs:
216
222
uses : actions/cache@v4
217
223
with :
218
224
path : swiftformat/.build
219
- key : swiftformat-build-0.53.0 -${{ runner.os }}
225
+ key : swiftformat-build-${{ steps.swiftformat-version.outputs.SWIFTFORMAT_VERSION }} -${{ runner.os }}
220
226
221
227
- name : Build swiftformat
222
228
if : ${{ inputs.language == 'swift' && steps.cache-swiftformat.outputs.cache-hit != 'true' }}
Original file line number Diff line number Diff line change 171
171
],
172
172
"datasourceTemplate" : " github-tags" ,
173
173
"depNameTemplate" : " php/php-src"
174
+ },
175
+ {
176
+ "description" : " Update swiftformat version" ,
177
+ "fileMatch" : [
178
+ " Dockerfile" ,
179
+ " .github/actions/setup/action.yml"
180
+ ],
181
+ "matchStrings" : [
182
+ " SWIFTFORMAT_VERSION=(?<currentValue>\\ d+\\ .\\ d+\\ .\\ d+)"
183
+ ],
184
+ "depNameTemplate" : " nicklockwood/SwiftFormat" ,
185
+ "datasourceTemplate" : " github-releases"
174
186
}
175
187
],
176
188
"github-actions" : {
Original file line number Diff line number Diff line change 1
1
ARG SWIFT_VERSION
2
+ ARG SWIFTFORMAT_VERSION= 0.54 . 0
2
3
3
- FROM ghcr. io/ nicklockwood/ swiftformat: latest as swiftFormat
4
+ FROM ghcr. io/ nicklockwood/ swiftformat: $ { SWIFTFORMAT_VERSION } AS swiftFormat
4
5
FROM swift: ${ SWIFT_VERSION} - jammy
5
6
6
7
COPY -- from= swiftFormat / usr/ bin/ swiftformat / usr/ bin/ swiftformat
You can’t perform that action at this time.
0 commit comments