diff --git a/scripts/auto-rebase/rebase.sh b/scripts/auto-rebase/rebase.sh index 2afe50b0bf..b5897a8bd9 100755 --- a/scripts/auto-rebase/rebase.sh +++ b/scripts/auto-rebase/rebase.sh @@ -137,6 +137,28 @@ replace_using_component_commit() { fi } +# Updates a script to record the last rebase that was run to make it +# easier to reproduce issues and to test changes to the rebase script +# against the same set of images. +update_last_rebase() { + local release_image_amd64=$1 + local release_image_arm64=$2 + + title "## updating last_rebase.sh" + + local last_rebase_script="${REPOROOT}/scripts/auto-rebase/last_rebase.sh" + + cat - >"${last_rebase_script}" <