We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abc87d commit 6e66b4fCopy full SHA for 6e66b4f
.github/actions/check-image-exists/action.yml
@@ -28,6 +28,11 @@ runs:
28
response = requests.get(url, headers={
29
'Authorization': f'Bearer {encoded_token}'
30
})
31
+
32
+ if response.status_code not in (200, 404):
33
+ print(response.text)
34
+ raise ValueError('Failed')
35
36
image_exists = '1' if response.status_code == 200 else '0'
37
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
38
print(f'image_exists={image_exists}', file=fh)
0 commit comments