Skip to content

Commit 3fa8381

Browse files
committed
Fix prebuild command timing.
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
1 parent a1e2dd9 commit 3fa8381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/diff/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def build_args():
2525
parser.add_argument(
2626
'--clone-dir',
2727
type=Path,
28-
default=Path(f'{os.getenv("GITHUB_WORKSPACE")}/src_repos'),
28+
default=f'{os.getenv("GITHUB_WORKSPACE")}/src_repos',
2929
help='Path to src_repos',
3030
dest='clone_dir'
3131
)
@@ -460,7 +460,7 @@ def run_pre_builds(repo_data, output_dir, debug_cmds, sdkman_sh):
460460
[
461461
cmds.extend(row['pre_build_cmd'].split(';'))
462462
for row in repo_data
463-
if row['pre_build_cmd']
463+
if row['pre_build_cmd'] and row['pre_build_cmd'].startswith('sdk use ')
464464
]
465465
cmds = [cmd.lstrip().rstrip() for cmd in cmds]
466466
cmds = set(cmds)

0 commit comments

Comments
 (0)