Skip to content

Commit a559dd3

Browse files
Bot Updating Templated Files
1 parent 2f13b5a commit a559dd3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/external_trigger.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ jobs:
4949
| jq -r '.config.digest')
5050
image_info=$(curl -sL \
5151
--header "Authorization: Bearer ${token}" \
52-
"https://ghcr.io/v2/${image}/blobs/${digest}" \
53-
| jq -r '.container_config')
52+
"https://ghcr.io/v2/${image}/blobs/${digest}")
53+
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
54+
image_info=$(echo $image_info | jq -r '.config')
55+
else
56+
image_info=$(echo $image_info | jq -r '.container_config')
57+
fi
5458
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
5559
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
5660
if [ -z "${IMAGE_VERSION}" ]; then

0 commit comments

Comments
 (0)