File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
outputs :
10
10
diffs : ${{ steps.regress-ci.outputs.diffs }}
11
- if : ${{ github.event.issue.pull_request }}
11
+ if : github.event.issue.pull_request && (contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci'))
12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
@@ -55,15 +55,15 @@ jobs:
55
55
with :
56
56
tool : git-delta
57
57
58
- - run : cargo regress diff ${{ matrix.command }} --use-pager-directly
58
+ - run : cargo regress diff --use-pager-directly ${{ matrix.command }}
59
59
env :
60
60
GH_TOKEN : ${{ github.token }}
61
61
GITHUB_PR : ${{ matrix.pr }}
62
62
GIT_PAGER : delta --hunk-header-style omit
63
63
summary :
64
64
runs-on : ubuntu-latest
65
65
needs : [diff, generate]
66
- if : always() && needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != ''
66
+ if : always() && needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' && needs.generate.result == 'success'
67
67
steps :
68
68
- uses : actions/checkout@v4
69
69
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use svd2rust::{util::ToSanitizedCase, Target};
4
4
use crate :: { command:: CommandExt , tests:: TestCase , Opts , TestOpts } ;
5
5
use std:: io:: prelude:: * ;
6
6
use std:: path:: PathBuf ;
7
- use std:: process:: { Command , Output } ;
7
+ use std:: process:: Command ;
8
8
use std:: {
9
9
fmt:: Write as _,
10
10
fs:: { self , File , OpenOptions } ,
@@ -340,7 +340,7 @@ impl TestCase {
340
340
src_files. sort ( ) ;
341
341
342
342
for entry in src_files {
343
- let output = Command :: new ( rustfmt_bin_path)
343
+ Command :: new ( rustfmt_bin_path)
344
344
. arg ( entry)
345
345
. args ( [ "--edition" , "2021" ] )
346
346
. capture_outputs (
You can’t perform that action at this time.
0 commit comments