Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit da702e4

Browse files
chore: update global workflows (#235)
1 parent d1b839c commit da702e4

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
version: 2
77
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
time: "07:30"
13+
open-pull-requests-limit: 10
14+
815
- package-ecosystem: "docker"
916
directory: "/"
1017
schedule:

.github/workflows/common-lint.yml

+22
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,28 @@ jobs:
193193
exit 1
194194
fi
195195
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+
196218
- name: YAML - find files
197219
id: yaml_files
198220
if: always()

0 commit comments

Comments
 (0)