Skip to content

Commit

Permalink
v1.4: Change exit code on response to fail so GHA display it correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
KorewaLidesu committed Dec 21, 2023
1 parent e755258 commit b4ae31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# Get download branch from env
print('---> Get download branch from env')
defaultBranch = 'main'
defaultBranch = 'mai'
branch = Util.getWorkingBranch(defaultBranch)

# Download installer artifact
Expand All @@ -42,7 +42,7 @@
response = requests.get(installerURL)
if not response.ok:
print('Response filed. Code: ' + str(response.status_code))
sys.exit()
sys.exit(1)
print('Downloading installer')
open(os.path.join(cache_path, 'installer.zip'), 'wb').write(response.content)

Expand Down

0 comments on commit b4ae31a

Please sign in to comment.