Skip to content

Commit 68ea6cf

Browse files
Bot Updating Templated Files
1 parent 0fba6b7 commit 68ea6cf

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
@@ -48,8 +48,12 @@ jobs:
4848
| jq -r '.config.digest')
4949
image_info=$(curl -sL \
5050
--header "Authorization: Bearer ${token}" \
51-
"https://ghcr.io/v2/${image}/blobs/${digest}" \
52-
| jq -r '.container_config')
51+
"https://ghcr.io/v2/${image}/blobs/${digest}")
52+
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
53+
image_info=$(echo $image_info | jq -r '.config')
54+
else
55+
image_info=$(echo $image_info | jq -r '.container_config')
56+
fi
5357
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
5458
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
5559
if [ -z "${IMAGE_VERSION}" ]; then

0 commit comments

Comments
 (0)