Skip to content

Commit 6e66b4f

Browse files
committed
change
1 parent 3abc87d commit 6e66b4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/check-image-exists/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ runs:
2828
response = requests.get(url, headers={
2929
'Authorization': f'Bearer {encoded_token}'
3030
})
31+
32+
if response.status_code not in (200, 404):
33+
print(response.text)
34+
raise ValueError('Failed')
35+
3136
image_exists = '1' if response.status_code == 200 else '0'
3237
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
3338
print(f'image_exists={image_exists}', file=fh)

0 commit comments

Comments
 (0)