Skip to content

Commit 581f1fe

Browse files
committed
Update runtimes workflow to don't break when a file doe not exists
1 parent 46fa998 commit 581f1fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/runtimes-digest-updater-upstream.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ jobs:
8484
8585
for ((i=0;i<${#PATHS[@]};++i)); do
8686
path=${PATHS[$i]}
87+
88+
if [[ ! -f "$path" ]]; then
89+
echo "File $path does not exist. Skipping..."
90+
continue
91+
fi
92+
8793
img=$(cat ${path} | jq -r '.metadata.image_name')
8894
name=$(echo "$path" | sed 's#.*runtime-images/\(.*\)-py.*#\1#')
8995
py_version=$(echo "$path" | grep -o 'python-[0-9]\.[0-9]')

0 commit comments

Comments
 (0)