Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshTrivedi committed Nov 29, 2024
1 parent c6deaed commit 3d224b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/add_to_leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ def validate_diff(experiment_prefixes: list[str]) -> None:
text=True,
)
added_file_paths = output.stdout.strip().splitlines()
added_file_paths = [
file_path
for file_path in added_file_paths
if file_path == os.path.join("experiments", "outputs", "_leaderboard.json")
]
output = subprocess.run(
["git", "diff", "origin/main", "--diff-filter=MD", "--name-only"],
capture_output=True,
Expand Down

0 comments on commit 3d224b1

Please sign in to comment.