Fix snapshot name formating

This commit is contained in:
Benjamin Renard 2022-05-02 16:12:12 +02:00
parent 2b59592819
commit 909c726c75

View file

@ -160,7 +160,7 @@ for changes_file in changes_files:
# Create a snapshot of the repository # Create a snapshot of the repository
snap_name = datetime.datetime.now().strftime('%Y%m%d-%H%M%S') + f'{REPO_NAME}' snap_name = datetime.datetime.now().strftime(f'%Y%m%d-%H%M%S_{REPO_NAME}')
print(f'Create new snapshot "{snap_name}" of repository "{REPO_NAME}"') print(f'Create new snapshot "{snap_name}" of repository "{REPO_NAME}"')
url = f'{API_URL}/repos/{REPO_NAME}/snapshots' url = f'{API_URL}/repos/{REPO_NAME}/snapshots'