From ca6e8f7fc419b7f2010ebc40be06b89da7173578 Mon Sep 17 00:00:00 2001 From: Peter Jakobs Date: Mon, 23 Dec 2024 08:38:37 +0100 Subject: [PATCH] setting the correct artifact names --- .github/workflows/build-container.yml | 3 --- .github/workflows/build_firmware.yml | 11 ++++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 8bffa83..ff9d91f 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -1,9 +1,6 @@ name: Build Container on: - push: - branches: - - develop schedule: - cron: '0 0 * * *' # Runs daily at midnight UTC diff --git a/.github/workflows/build_firmware.yml b/.github/workflows/build_firmware.yml index e8efbaa..1276413 100644 --- a/.github/workflows/build_firmware.yml +++ b/.github/workflows/build_firmware.yml @@ -104,8 +104,17 @@ jobs: echo "path=" >> $GITHUB_OUTPUT fi + - name: Set artifact name + id: set_artifact_name + run: | + if [ "${{ matrix.release }}" = "1" ]; then + echo "artifact_name=firmware-${{ matrix.soc }}-release" >> $GITHUB_ENV + else + echo "artifact_name=firmware-${{ matrix.soc }}-debug" >> $GITHUB_ENV + fi + - name: Upload firmware artifact uses: actions/upload-artifact@v3 with: - name: firmware-${{ matrix.soc }}-release-${{ matrix.release }} + name: ${{ steps.set_artifact_name.outputs.artifact_name }} path: ${{ steps.set_firmware_path.outputs.path }} \ No newline at end of file