Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/kernel-backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ jobs:
status=0
for tag in $pinned; do
series=$(series_of "$tag")
latest=$(while read -r t; do [[ $(series_of "$t") == "$series" ]] && echo "$t"; done <<<"$upstream" | tail -1)
# awk, not a read loop: the step runs under bash -e, and a loop whose
# last test fails would end the script silently.
latest=$(awk -v s="$series." 'index($0, s) == 1' <<<"$upstream" | tail -1)
if [[ $latest == "$tag" ]]; then
echo "$tag is the newest $series tag"
else
Expand Down
Loading