From fd6cbe7dd05f4212d11aad47a7b8627b4bdbb372 Mon Sep 17 00:00:00 2001 From: Bich Vu Thi Ngoc <=> Date: Mon, 14 Oct 2024 08:53:36 +0700 Subject: [PATCH] fix generate firmware workflow --- .github/workflows/generate_firmware.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate_firmware.yaml b/.github/workflows/generate_firmware.yaml index 1351acaf..81bf892b 100644 --- a/.github/workflows/generate_firmware.yaml +++ b/.github/workflows/generate_firmware.yaml @@ -17,6 +17,7 @@ env: JLINK_SEGGER_URL: https://www.segger.com/downloads/jlink/JLink_Linux_x86_64.tgz TASK: gen-only JLINK_PATH: /opt/SEGGER/JLink/libjlinkarm.so + REPO_BRANCH: ${{ github.head_ref || github.ref_name }} jobs: job1: name: Generate Firmware for MG24 with GCC @@ -58,7 +59,7 @@ jobs: cd extension git clone https://github.com/SiliconLabs/IEC60730_Libs.git cd IEC60730_Libs - git checkout create-unit-test-functions-in-lib-iec60730 + git checkout $REPO_BRANCH ls -la cd .. ls -la @@ -194,7 +195,7 @@ jobs: cd extension git clone https://github.com/SiliconLabs/IEC60730_Libs.git cd IEC60730_Libs - git checkout create-unit-test-functions-in-lib-iec60730 + git checkout $REPO_BRANCH ls -la cd .. ls -la