Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit b39d2bf

Browse files
committed
fix icon path for github action
1 parent e6d4c66 commit b39d2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/update-listing/mpapihelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def upload_icon(config):
352352
bind_action_dic(config)
353353
apicall = action_api_uri_dic[config.action]
354354
uri = api_url + apicall
355-
file_name = "marketplace/icon.png"
355+
file_name = "/marketplace/icon.png" if os.path.isfile("/marketplace/icon.png") else "marketplace/icon.png"
356356
files = {'image': open(file_name, 'rb')}
357357
r = requests.post(uri, headers=api_headers, files=files)
358358
if r.status_code > 299:

0 commit comments

Comments
 (0)