diff --git a/update.py b/update.py index 79fd937..7b64e11 100755 --- a/update.py +++ b/update.py @@ -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: