chore: fix workflow erros

This commit is contained in:
2061360308 2023-12-20 01:24:27 +08:00
parent bc79a64ed8
commit 91ff295c36

View File

@ -2,14 +2,20 @@ import os
import subprocess import subprocess
# Bump version # Bump version
print('Bumping version...')
subprocess.check_call(['bumpversion', 'patch']) subprocess.check_call(['bumpversion', 'patch'])
# Push changes to remote # Push changes to remote
print('Pushing changes to remote...')
subprocess.check_call(['git', 'push']) subprocess.check_call(['git', 'push'])
subprocess.check_call(['git', 'push', '--tags']) subprocess.check_call(['git', 'push', '--tags'])
# Run towncrier # Run towncrier
print('Running towncrier...')
subprocess.check_call(['towncrier', '--yes']) subprocess.check_call(['towncrier', '--yes'])
print("Created newsfragments directory")
if not os.path.isdir('./newsfragments'): if not os.path.isdir('./newsfragments'):
os.mkdir('./newsfragments') os.mkdir('./newsfragments')
print("Done!")