From e308591c0038edfb703b4d9ea709cf66b79b1e20 Mon Sep 17 00:00:00 2001 From: Silabs-ThieuVu <65759766+Silabs-ThieuVu@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:15:53 +0700 Subject: [PATCH] Update 01-Generate_Firmware.yaml --- .github/workflows/01-Generate_Firmware.yaml | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/01-Generate_Firmware.yaml b/.github/workflows/01-Generate_Firmware.yaml index 0c8021cc..92fedf9f 100644 --- a/.github/workflows/01-Generate_Firmware.yaml +++ b/.github/workflows/01-Generate_Firmware.yaml @@ -44,8 +44,22 @@ jobs: ADAPTER_SN: 440133193 CHIP: EFR32MG24BXXXF1536 steps: + - name: Trigger + run: echo "Triggered by ${{github.event_name}} event" + + - name: Check Branch Input + run: | + if [ -z "${{ github.event.inputs.branch }}" ]; then + echo "Branch input is required." + exit 1 + fi + echo "Checkout branch ${{ github.event.inputs.branch }}" + - name: Checkout uses: actions/checkout@v4.1.7 + with: + ref: "${{ github.event.inputs.branch }}" + - name: Install Simplicity SDK if: always() run: | @@ -179,8 +193,22 @@ jobs: ADAPTER_SN: 440189400 CHIP: EFR32MG12 steps: + - name: Trigger + run: echo "Triggered by ${{github.event_name}} event" + + - name: Check Branch Input + run: | + if [ -z "${{ github.event.inputs.branch }}" ]; then + echo "Branch input is required." + exit 1 + fi + echo "Checkout branch ${{ github.event.inputs.branch }}" + - name: Checkout uses: actions/checkout@v4.1.7 + with: + ref: "${{ github.event.inputs.branch }}" + - name: Install Simplicity SDK if: always() run: |