Skip to content

Commit

Permalink
Fix prebuild command timing.
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
  • Loading branch information
cerrussell committed Dec 24, 2024
1 parent 90e42ff commit 19422c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/diff/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def build_args():
parser.add_argument(
'--clone-dir',
type=Path,
default=Path(f'{os.getenv("GITHUB_WORKSPACE")}/src_repos'),
default=f'{os.getenv("GITHUB_WORKSPACE")}/src_repos',
help='Path to src_repos',
dest='clone_dir'
)
Expand Down Expand Up @@ -460,7 +460,7 @@ def run_pre_builds(repo_data, output_dir, debug_cmds, sdkman_sh):
[
cmds.extend(row['pre_build_cmd'].split(';'))
for row in repo_data
if row['pre_build_cmd']
if row['pre_build_cmd'] and row['pre_build_cmd'].startswith('sdk use ')
]
cmds = [cmd.lstrip().rstrip() for cmd in cmds]
cmds = set(cmds)
Expand Down

0 comments on commit 19422c5

Please sign in to comment.