-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.2 KB
/
update_deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
schedule:
- cron: '0 0 * * 0'
name: Update dependencies
jobs:
code_check:
name: Update dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy, rustfmt
profile: minimal
- name: Install 'cargo-edit'
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-edit
- name: Upgrade dependencies
uses: actions-rs/cargo@v1
with:
command: upgrade
- name: Update lock file
uses: actions-rs/cargo@v1
with:
command: update
- name: Check if code still compiles
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --all-targets --release
- name: Commit changes, if any
run: |
git config --global user.name 'Ticky'
git config --global user.email '[email protected]'
git diff --quiet && git diff --staged --quiet || git commit -am "Automatically update dependencies"
git push