CI: Fix images download 37/313537/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 25 Jun 2024 14:37:56 +0000 (16:37 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Thu, 27 Jun 2024 12:10:16 +0000 (14:10 +0200)
As there is a delta file in the source directory in addition to the
image, both files are downloaded and in some situations the script tries
to build a delta not between the OLD and NEW image, but for example,
between the OLD image and the downloaded DELTA.

Change-Id: Ibafc63cf21b22b55221dd45eb946148076918aec

mk_delta/action.yml

index 243d7224bf6abb021f49deb6322f2cd7dbd5881a..6959a1fb94c4408aaf9dc26f3786166bc6f0c73c 100644 (file)
@@ -126,8 +126,8 @@ runs:
 
         WGET_DEFAULT="wget --no-parent -r --no-verbose --no-directories"
         WGET_BART="${WGET_DEFAULT} --user ${{ inputs.bart_id }} --password ${{ inputs.bart_key }}"
-        WGET_SHA256SUMS="--accept SHA256SUMS"
-        WGET_TARGZ="--accept .tar.gz"
+        WGET_SHA256SUMS="--accept=SHA256SUMS"
+        WGET_TARGZ="--accept=tizen*.tar.gz"
 
         INPUT_SUMS=$(pwd)/${{ env.INPUT_SUMS }}
         touch ${INPUT_SUMS}
@@ -141,7 +141,8 @@ runs:
             fi
 
             echo "Downloading $item..."
-            DL="$([[ $item == "https://bart.sec.samsung.net/artifactory/"* ]] && echo ${WGET_BART} $3 $item || echo ${WGET_DEFAULT} $3 $item)"
+            DL="$([[ $item == "https://bart.sec.samsung.net/artifactory/"* ]] && echo ${WGET_BART} "$3" $item || echo ${WGET_DEFAULT} "$3" $item)"
+
             if ! ${DL}; then
               MSG="Failed to download $item."
               echo "::error::${MSG}"