Clean README in post release job as well. (#17519)

This commit is contained in:
Sylvain Gugger 2022-06-02 07:44:03 -04:00 committed by GitHub
parent 216499bfcc
commit f128ccb997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,7 @@ To create the package for pypi.
10. Copy the release notes from RELEASE.md to the tag in github once everything is looking hunky-dory.
11. Run `make post-release` (or, for a patch release, `make post-patch`). If you were on a branch for the release,
11. Run `make post-release` then run `make fix-copies`. If you were on a branch for the release,
you need to go back to main before executing this.
"""

View File

@ -123,7 +123,7 @@ def pre_release_work(patch=False):
print(f"Updating version to {version}.")
global_version_update(version, patch=patch)
if not patch:
print("Cleaning main README")
print("Cleaning main README, don't forget to run `make fix-copies`.")
clean_main_ref_in_model_list()
@ -141,6 +141,8 @@ def post_release_work():
print(f"Updating version to {version}.")
global_version_update(version)
print("Cleaning main README, don't forget to run `make fix-copies`.")
clean_main_ref_in_model_list()
if __name__ == "__main__":