workflow: use find to locate archive

pull/1689/head
viktorxda 2025-01-27 16:09:33 +01:00
parent 48d3be24da
commit e5ad5ae1db
1 changed files with 2 additions and 5 deletions

View File

@ -188,15 +188,12 @@ jobs:
TIME=$(date -d @${SECONDS} +%M:%S)
echo TIME=${TIME} >> ${GITHUB_ENV}
PLATFORM=$(echo ${{matrix.platform}} | cut -d_ -f1)
RELEASE=$(echo ${{matrix.platform}} | cut -d_ -f2)
NORFW=${GITHUB_WORKSPACE}/output/images/openipc.${PLATFORM}-nor-${RELEASE}.tgz
NORFW=$(find output/images -name openipc*nor*)
if [ -e ${NORFW} ]; then
echo NORFW=${NORFW} >> ${GITHUB_ENV}
fi
NANDFW=${GITHUB_WORKSPACE}/output/images/openipc.${PLATFORM}-nand-${RELEASE}.tgz
NANDFW=$(find output/images -name openipc*nand*)
if [ -e ${NANDFW} ]; then
echo NANDFW=${NANDFW} >> ${GITHUB_ENV}
fi