Replace commit sha by commit url for update jobs (#14852)
* Replace commit sha by commit url for update jobs * Typo * Update .github/workflows/build_documentation.yml Co-authored-by: Julien Chaumond <julien@huggingface.co> * Apply review comments Co-authored-by: Julien Chaumond <julien@huggingface.co>
This commit is contained in:
@@ -221,7 +221,13 @@ def update_metadata(token, commit_sha):
|
||||
if repo.is_repo_clean():
|
||||
print("Nothing to commit!")
|
||||
else:
|
||||
commit_message = f"Update with commit {commit_sha}" if commit_sha is not None else "Update"
|
||||
if commit_sha is not None:
|
||||
commit_message = (
|
||||
f"Update with commit {commit_sha}\n\nSee: "
|
||||
f"https://github.com/huggingface/transformers/commit/{commit_sha}"
|
||||
)
|
||||
else:
|
||||
commit_message = "Update"
|
||||
repo.push_to_hub(commit_message)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user