Skip to content

Commit

Permalink
CI: Only read the last line when using the hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Debilski committed Oct 7, 2024
1 parent 7aa1985 commit 3dae424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/ci_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def hash_team(team_spec):
team_spec]
_logger.debug("Executing: %r", external_call)
res = subprocess.run(external_call, capture_output=True, text=True)
return res.stdout.strip()
return res.stdout.strip().split("\n")[-1].strip()

class CI_Engine:
"""Continuous Integration Engine."""
Expand Down

0 comments on commit 3dae424

Please sign in to comment.