File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
version : 2
7
7
updates :
8
+ - package-ecosystem : " cargo"
9
+ directory : " /"
10
+ schedule :
11
+ interval : " daily"
12
+ time : " 07:30"
13
+ open-pull-requests-limit : 10
14
+
8
15
- package-ecosystem : " docker"
9
16
directory : " /"
10
17
schedule :
Original file line number Diff line number Diff line change @@ -193,6 +193,28 @@ jobs:
193
193
exit 1
194
194
fi
195
195
196
+ - name : Rust - find Cargo.toml
197
+ id : run_cargo
198
+ if : always()
199
+ run : |
200
+ # check if Cargo.toml exists
201
+ if [ -f "Cargo.toml" ]; then
202
+ echo "found_cargo=true" >> $GITHUB_OUTPUT
203
+ else
204
+ echo "found_cargo=false" >> $GITHUB_OUTPUT
205
+ fi
206
+
207
+ - name : Rust - setup toolchain
208
+ if : always() && steps.run_cargo.outputs.found_cargo == 'true'
209
+ uses : dtolnay/rust-toolchain@stable
210
+ with :
211
+ components : rustfmt
212
+
213
+ - name : Rust - cargo fmt
214
+ if : always() && steps.run_cargo.outputs.found_cargo == 'true'
215
+ run : |
216
+ cargo fmt -- --check
217
+
196
218
- name : YAML - find files
197
219
id : yaml_files
198
220
if : always()
You can’t perform that action at this time.
0 commit comments