File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Update Cargo.lock
2
2
3
3
on :
4
+ # Allow manually running the update
5
+ workflow_dispatch :
6
+ # Run every Sunday at 00:00 UTC
4
7
schedule :
5
- # Run every Sunday at 00:00 UTC
6
8
- cron : ' 0 0 * * 0'
7
9
10
+ # We need permissions to commit code and open a pull request
8
11
permissions :
9
- contents : read
12
+ contents : write
10
13
pull-requests : write
11
14
12
15
jobs :
13
16
update-cargo-lock :
14
17
runs-on : ubuntu-latest
15
18
steps :
16
19
- uses : actions/checkout@v4
17
- - uses : dtolnay/rust-toolchain@master
18
- with :
19
- toolchain : stable
20
+ - uses : dtolnay/rust-toolchain@stable
20
21
- name : Update dependencies
21
22
run : cargo update
22
23
- name : Create Pull Request
23
24
uses : peter-evans/create-pull-request@v7
24
- env :
25
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
25
with :
27
26
title : " Update Cargo.lock"
28
27
commit-message : " Update Cargo.lock"
You can’t perform that action at this time.
0 commit comments