Skip to content

Commit

Permalink
workflows: Add missing variables in test job template
Browse files Browse the repository at this point in the history
This patch fixes the DEVICE_TYPE variable and adds GITHUB_RUN_ID
variable substitution in the LAVA job template.

Signed-off-by: Milosz Wasilewski <[email protected]>
  • Loading branch information
mwasilew authored and ndechesne committed Jan 14, 2025
1 parent bd2261c commit ad1251d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ad1251d

Please sign in to comment.