diff --git a/rpi-update b/rpi-update index 534ecdf..cbacd14 100755 --- a/rpi-update +++ b/rpi-update @@ -682,6 +682,8 @@ if [[ "${FW_REV}" == "" ]]; then if [[ "${ARTIFACT}" == pulls/* ]]; then PULL=${ARTIFACT##*/} ARTIFACT=$(eval curl -s "https://api.github.com/repos/raspberrypi/linux/pulls/${PULL}" | awk '/"sha":/ {gsub(/"/, "", $2); gsub(/,/, "", $2); print $2; exit}') + else + ARTIFACT=$(eval curl -s "https://api.github.com/repos/raspberrypi/linux/actions/artifacts" | grep -A1 "\"head_branch\": \"${FW_REV_IN}\"" | awk '/"head_sha":/ {gsub(/"/, "", $2); gsub(/,/, "", $2); print $2; exit}') fi else ARTIFACT=${FW_REV_IN}