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 }}