Skip to content

Commit d0ef02f

Browse files
Merge pull request #690 from atheo89/minor-fixes
Update runtimes workflow to don't break when a file doe not exists
2 parents 46fa998 + 581f1fe commit d0ef02f

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)