Skip to content

Commit

Permalink
Fix update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Mar 9, 2019
1 parent e31c7c0 commit 4587eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ def main():
zip_path = _file_path('dist', f'holiday-cn-{tag}.zip')
pack_data(zip_path)

subprocess.run(['hub', 'push'], check=True)
subprocess.run(
['hub', 'commit', '-m', 'Update holiday data [skip ci]'], check=True)
subprocess.run(['hub', 'release', 'create', '-F', temp_note_name,
'-a', f'{zip_path}#JSON数据',
tag], check=True)
subprocess.run(['hub', 'push'], check=True)
os.unlink(temp_note_name)


Expand Down

0 comments on commit 4587eae

Please sign in to comment.