mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Add hotfix script
This commit is contained in:
4
.github/workflow_data/webupdater.py
vendored
4
.github/workflow_data/webupdater.py
vendored
@@ -6,6 +6,10 @@ if __name__ == "__main__":
|
||||
client.login(os.environ["NC_USER"], os.environ["NC_PASS"])
|
||||
file = os.environ["NC_FILE"]
|
||||
path = os.environ["NC_PATH"] + file
|
||||
try:
|
||||
client.delete(path)
|
||||
except Exception:
|
||||
pass
|
||||
client.put_file(path, file)
|
||||
share_link = client.share_file_with_link(path).get_link()
|
||||
download_link = share_link.rstrip("/") + "/download/" + file
|
||||
|
||||
Reference in New Issue
Block a user