From ad1251d77883f3887bb92bfc8bd0c96909dd2dc5 Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Tue, 14 Jan 2025 10:20:27 +0000 Subject: [PATCH] workflows: Add missing variables in test job template This patch fixes the DEVICE_TYPE variable and adds GITHUB_RUN_ID variable substitution in the LAVA job template. Signed-off-by: Milosz Wasilewski --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c114e1cc..a502da17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,13 +46,15 @@ jobs: run: | TARGET=${{ matrix.target }} FIND_PATH="${TARGET#*/}" - DEVICE_TYPE="${FIND_PATH%/*}" + DEVICE_TYPE_PATH="${FIND_PATH%/*}" + DEVICE_TYPE="${DEVICE_TYPE_PATH#*/}" BUILD_FILE_NAME="core-image-base-${DEVICE_TYPE}.rootfs.qcomflash.tar.gz" BUILD_DOWNLOAD_URL="${{inputs.url}}/${DEVICE_TYPE}/${BUILD_FILE_NAME}" sed -i "s|{{DEVICE_TYPE}}|${DEVICE_TYPE}|g" "${{ matrix.target }}" sed -i "s|{{GITHUB_SHA}}|${GITHUB_SHA}|g" "${{ matrix.target }}" sed -i "s|{{BUILD_DOWNLOAD_URL}}|${BUILD_DOWNLOAD_URL}|g" "${{ matrix.target }}" sed -i "s|{{BUILD_FILE_NAME}}|${BUILD_FILE_NAME}|g" "${{ matrix.target }}" + sed -i "s|{{GITHUB_RUN_ID}}|${GITHUB_RUN_ID}|g" "${{ matrix.target }}" cat "${{ matrix.target }}" - name: Submit ${{ matrix.target }}