.github/scripts/capsule-versioning-check.sh: don't fail on new configs

If a new defconfig was added between the previous and current tag, the
script failed with an error like this:

    fatal: path 'configs/config.gigabyte_mz33-ar1' exists on disk, but
    not in 'msi_ms7e06_v0.9.4'

Change-Id: Ic50dbfb5432cc59ec2ac9e14eb5296e08fe28da2
Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
Sergii Dmytruk
2026-05-31 00:47:57 +03:00
parent 000422075a
commit bd40246baa
+5 -1
View File
@@ -75,7 +75,11 @@ fail=0
mapfile -t configs < <(grep -l 'EFI_UPDATE_CAPSULE' configs/config.*)
for config in "${configs[@]}"; do
new_config=$(git show "$new_tag:$config")
old_config=$(git show "$old_tag:$config")
if ! old_config=$(git show "$old_tag:$config"); then
# `git show revision:path` fails if the revision doesn't contain the
# path and we also have nothing to do in this case
continue
fi
# check that `CONFIG_EDK2_CAPSULES_V2=y` is not added to
# `CONFIG_DRIVERS_EFI_UPDATE_CAPSULES=y` without