chore: check diff when not specified --release
This commit is contained in:
parent
9a91dfd8f5
commit
f6264bcc86
|
|
@ -83,10 +83,6 @@ def main():
|
|||
filenames.append(filename)
|
||||
print('')
|
||||
|
||||
if not is_release:
|
||||
print('Updated repository data, skip release since not specified `--release`')
|
||||
return
|
||||
|
||||
subprocess.run(['hub', 'add', *filenames], check=True)
|
||||
diff = subprocess.run(['hub', 'diff', '--stat', '--cached', '*.json'],
|
||||
check=True,
|
||||
|
|
@ -96,6 +92,10 @@ def main():
|
|||
print('Already up to date.')
|
||||
return
|
||||
|
||||
if not is_release:
|
||||
print('Updated repository data, skip release since not specified `--release`')
|
||||
return
|
||||
|
||||
tag = now.strftime('%Y.%m.%d')
|
||||
temp_note_fd, temp_note_name = mkstemp()
|
||||
with open(temp_note_fd, 'w', encoding='utf-8') as f:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user