From c92cd62665808c89c5a841dfc2d50b33f0a71948 Mon Sep 17 00:00:00 2001 From: sukuwc Date: Thu, 13 Nov 2025 09:58:16 +0100 Subject: [PATCH] SUKU run nightly and preview on tagged commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated workflow conditions to run on both: - Main branch pushes (normal builds) - Tagged commits (release builds) Changes: - Nightly release runs on main OR when tag exists - Preview deployment runs on main OR when tag exists - Added inline comments explaining the reasoning This ensures nightly and preview are never behind production releases, as all will point to the same commit when a tag is created. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/firmware_workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firmware_workflow.yml b/.github/workflows/firmware_workflow.yml index e8df20c..1aa651e 100644 --- a/.github/workflows/firmware_workflow.yml +++ b/.github/workflows/firmware_workflow.yml @@ -25,13 +25,15 @@ jobs: publish-nightly: name: Publish Nightly Release - if: github.ref == 'refs/heads/main' + # Run on main branch OR when a tag exists to ensure nightly is never behind production releases + if: github.ref == 'refs/heads/main' || needs.build.outputs.release_version != '' needs: build uses: ./.github/workflows/firmware_release_nightly.yml secrets: inherit deploy-preview: name: Deploy to Preview Branch - if: github.ref == 'refs/heads/main' + # Run on main branch OR when a tag exists to ensure preview is never behind production releases + if: github.ref == 'refs/heads/main' || needs.build.outputs.release_version != '' needs: build uses: ./.github/workflows/firmware_deploy_preview.yml