Skip to content

Commit 15ac52b

Browse files
Bot Updating Templated Files
1 parent dffb00d commit 15ac52b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/external_trigger.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ jobs:
4343
| jq -r '.config.digest')
4444
image_info=$(curl -sL \
4545
--header "Authorization: Bearer ${token}" \
46-
"https://ghcr.io/v2/${image}/blobs/${digest}" \
47-
| jq -r '.container_config')
46+
"https://ghcr.io/v2/${image}/blobs/${digest}")
47+
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
48+
image_info=$(echo $image_info | jq -r '.config')
49+
else
50+
image_info=$(echo $image_info | jq -r '.container_config')
51+
fi
4852
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
4953
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
5054
if [ -z "${IMAGE_VERSION}" ]; then

0 commit comments

Comments
 (0)