diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index bbce4b4a..f2eab6bc 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 baad3b40..663767fd 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 }}