File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ concurrency:
2121 cancel-in-progress : true
2222
2323jobs :
24- check :
24+ check :
25+ permissions :
26+ pull-requests : write
2527 name : Check - ${{ matrix.run_args.label }}
2628 runs-on : ${{ matrix.run_args.os }}
2729 strategy :
Original file line number Diff line number Diff line change @@ -300,6 +300,12 @@ impl Xtasks {
300300 let mut args = vec ! [ ] ;
301301 args. push ( command. to_owned ( ) ) ;
302302 args. push ( "--workspace" . to_owned ( ) ) ;
303+ let profile = Self :: get_cargo_profile ( ) ;
304+ if let Some ( profile) = profile {
305+ args. push ( "--profile" . to_owned ( ) ) ;
306+ args. push ( profile) ;
307+ }
308+
303309 args. extend ( features. to_cargo_args ( ) ) ;
304310 args. extend ( add_args. into_iter ( ) . map ( |s| {
305311 s. as_ref ( )
@@ -308,12 +314,6 @@ impl Xtasks {
308314 . to_owned ( )
309315 } ) ) ;
310316
311- let profile = Self :: get_cargo_profile ( ) ;
312- if let Some ( profile) = profile {
313- args. push ( "--profile" . to_owned ( ) ) ;
314- args. push ( profile) ;
315- }
316-
317317 let working_dir = match dir {
318318 Some ( d) => Self :: relative_workspace_dir ( d) ?,
319319 None => Self :: workspace_dir ( ) ?,
You can’t perform that action at this time.
0 commit comments