File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 20
20
Automation to keep dependencies in `Cargo.lock` current.
21
21
22
22
The following is the output from `cargo update`:
23
+ COMMIT_MESSAGE : " cargo update \n\n "
23
24
24
25
jobs :
25
26
update :
39
40
rustup default $TOOLCHAIN
40
41
41
42
- name : cargo update
42
- run : cargo update 2>&1 | tee -a cargo_update.log
43
+ # Remove first line that always just says "Updating crates.io index"
44
+ run : cargo update 2>&1 | sed '/crates.io index/d' | tee -a cargo_update.log
43
45
- name : upload Cargo.lock artifact for use in PR
44
46
uses : actions/upload-artifact@v3
45
47
with :
73
75
with :
74
76
name : cargo-updates
75
77
76
- - name : craft PR body
78
+ - name : craft PR body and commit message
77
79
run : |
80
+ echo "${COMMIT_MESSAGE}" > commit.txt
81
+ cat cargo_update.log >> commit.txt
82
+
78
83
echo "${PR_MESSAGE}" > body.md
79
84
echo '```txt' >> body.md
80
85
cat cargo_update.log >> body.md
86
91
git config user.email [email protected]
87
92
git switch -C cargo_update
88
93
git add ./Cargo.lock
89
- git commit --no-verify -m "cargo update"
94
+ git commit --no-verify --file=commit.txt
90
95
91
96
- name : edit and reopen existing pull request
92
97
id : edit
You can’t perform that action at this time.
0 commit comments