Fix update.py
This commit is contained in:
parent
245b1adc50
commit
e31c7c0bdd
|
|
@ -90,7 +90,8 @@ def main():
|
||||||
temp_note_fd, temp_note_name = mkstemp()
|
temp_note_fd, temp_note_name = mkstemp()
|
||||||
with open(temp_note_fd, 'w', encoding='utf-8') as f:
|
with open(temp_note_fd, 'w', encoding='utf-8') as f:
|
||||||
f.write(tag + '\n\n```diff' + diff + '\n```')
|
f.write(tag + '\n\n```diff' + diff + '\n```')
|
||||||
zip_path = _file_path('dist', f'#holiday-cn-{tag}.zip')
|
os.makedirs(_file_path('dist'), exist_ok=True)
|
||||||
|
zip_path = _file_path('dist', f'holiday-cn-{tag}.zip')
|
||||||
pack_data(zip_path)
|
pack_data(zip_path)
|
||||||
|
|
||||||
subprocess.run(['hub', 'push'], check=True)
|
subprocess.run(['hub', 'push'], check=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user