Skip to content

Commit 976d8c2

Browse files
committed
correct flags
1 parent 3a7264e commit 976d8c2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/bevy_mod_scripting.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
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:

crates/xtask/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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()?,

0 commit comments

Comments
 (0)