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 906c360 commit 1317fb6Copy full SHA for 1317fb6
.github/actions/check-image-exists/action.yml
@@ -10,11 +10,16 @@ inputs:
10
github_token:
11
required: true
12
description: Github token
13
+outputs:
14
+ image_exists:
15
+ description: "Image exists"
16
+ value: ${{ steps.image.outputs.image_exists }}
17
18
runs:
19
using: "composite"
20
steps:
21
- name: Check image exists
22
+ id: image
23
run: |
24
import requests
25
import base64
@@ -38,8 +43,6 @@ runs:
38
43
print(f'image_exists={image_exists}', file=fh)
39
44
40
45
print('Image exists' if image_exists == 'yes' else 'Image not found')
41
- with open(os.environ['GITHUB_OUTPUT']) as fh:
42
- print(fh.read())
46
shell: python
47
env:
48
SERVIC: ${{ inputs.service }}
0 commit comments