From 8d2e711eadf91436873d8013ad23481be374b4f2 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Sat, 29 Jun 2024 16:02:07 +0200 Subject: [PATCH] Test again --- .github/workflows/build-firmware.yaml | 2 +- .github/workflows/deploy-firmware.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index bbce4b4..f2eab6b 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -100,7 +100,7 @@ jobs: id: determine_ref run: | if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then - sed -i "s/ref: .*/ref: ${{ github.head_ref }}/g" ${{ matrix.firmware }}/${{ matrix.device }}.yaml + sed -i "s/ref: .*/ref: ${{ github.head_ref || github.ref }}/g" ${{ matrix.firmware }}/${{ matrix.device }}.yaml else echo "Skipping sed command because the branch is main." fi diff --git a/.github/workflows/deploy-firmware.yaml b/.github/workflows/deploy-firmware.yaml index baad3b4..663767f 100644 --- a/.github/workflows/deploy-firmware.yaml +++ b/.github/workflows/deploy-firmware.yaml @@ -13,7 +13,6 @@ on: jobs: build-firmware: - name: 🔨 Build firmware uses: klaasnicolaas/home-assistant-glow/.github/workflows/build-firmware.yaml@klaas-2024-035 with: release-url: ${{ github.event.release.html_url }}