Skip to content

Commit 1317fb6

Browse files
committed
change
1 parent 906c360 commit 1317fb6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ inputs:
1010
github_token:
1111
required: true
1212
description: Github token
13+
outputs:
14+
image_exists:
15+
description: "Image exists"
16+
value: ${{ steps.image.outputs.image_exists }}
1317

1418
runs:
1519
using: "composite"
1620
steps:
1721
- name: Check image exists
22+
id: image
1823
run: |
1924
import requests
2025
import base64
@@ -38,8 +43,6 @@ runs:
3843
print(f'image_exists={image_exists}', file=fh)
3944
4045
print('Image exists' if image_exists == 'yes' else 'Image not found')
41-
with open(os.environ['GITHUB_OUTPUT']) as fh:
42-
print(fh.read())
4346
shell: python
4447
env:
4548
SERVIC: ${{ inputs.service }}

0 commit comments

Comments
 (0)