Skip to content

Commit 0e73ced

Browse files
committed
change
1 parent c3e37a3 commit 0e73ced

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runs:
3333
print(response.text)
3434
raise ValueError('Failed')
3535
36-
image_exists = '1' if response.status_code == 200 else '0'
36+
image_exists = 'yes' if response.status_code == 200 else 'no'
3737
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
3838
print(f'image_exists={image_exists}', file=fh)
3939

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
with:
9898
githash: ${{ needs.check-pretix-build.outputs.githash }}
9999
secrets: inherit
100-
if: ${{ needs.check-pretix-build.outputs.image_exists == 0 }}
100+
if: ${{ needs.check-pretix-build.outputs.image_exists == 'no' }}
101101

102102
build-be:
103103
name: Build backend
@@ -106,7 +106,7 @@ jobs:
106106
with:
107107
githash: ${{ needs.check-backend-build.outputs.githash }}
108108
secrets: inherit
109-
if: ${{ needs.check-backend-build.outputs.image_exists == 0 }}
109+
if: ${{ needs.check-backend-build.outputs.image_exists == 'no' }}
110110

111111
deploy-be:
112112
name: Deploy backend
@@ -167,7 +167,7 @@ jobs:
167167
githash: ${{ needs.check-frontend-build.outputs.githash }}
168168
tf_environment: ${{ fromJSON('["pastaporto", "production"]')[github.ref == 'refs/heads/main'] }}
169169
secrets: inherit
170-
if: always() && needs.check-frontend-build.outputs.image_exists == 0 && !cancelled() && !failure() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
170+
if: always() && needs.check-frontend-build.outputs.image_exists == 'no' && !cancelled() && !failure() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
171171

172172
deploy-fe:
173173
name: Deploy frontend

test.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test
2+
line2
3+
line3

0 commit comments

Comments
 (0)