File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ runs:
37
37
# Case 4: >1 tags were created, but the most recent one was never deleted (same as case 3, but the latest tag does not have "end_ts".
38
38
- name : Check if Image already exists
39
39
shell : bash
40
- if : ${{ inputs.OVERWRITE }} == " false"
40
+ if : inputs.OVERWRITE == ' false'
41
41
env :
42
42
IMAGE : quay.io/${{ env.QUAY_ORG }}/${{ inputs.IMAGE_REPO }}:${{ env.TARGET_IMAGE_TAG }}
43
43
run : |
44
+ echo ${{ inputs.OVERWRITE }}
45
+
44
46
tags=$(curl --request GET 'https://quay.io/api/v1/repository/${{ env.QUAY_ORG }}/${{ inputs.IMAGE_REPO }}/tag/?specificTag=${{ env.TARGET_IMAGE_TAG }}')
45
- echo $tags | yq .tags - | yq 'sort_by(.start_ts) | reverse' - -P | yq .[0].end_ts -
46
47
latest_tag_has_end_ts=$(echo $tags | yq .tags - | yq 'sort_by(.start_ts) | reverse' - -P | yq .[0].end_ts -)
47
- echo $latest_tag_has_end_ts
48
48
notempty=$(echo ${tags} | yq .tags - | yq any)
49
49
50
50
# Image only exists if there is a tag that does not have "end_ts" (i.e. it is still present).
You can’t perform that action at this time.
0 commit comments