From 1e1d7d9b6894eb6ac136db530e8759da0766bf04 Mon Sep 17 00:00:00 2001 From: Andy <119136210+AndyMik90@users.noreply.github.com> Date: Thu, 25 Dec 2025 19:55:08 +0100 Subject: [PATCH] fix(ci): use develop branch for dry-run builds in beta-release workflow (#276) When dry_run=true, the workflow skipped creating the version tag but build jobs still tried to checkout that non-existent tag, causing all 4 platform builds to fail with "git failed with exit code 1". Now build jobs checkout develop branch for dry runs while still using the version tag for real releases. Closes: GitHub Actions run #20464082726 --- .github/workflows/beta-release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index c25e0544..6da6dfd3 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -87,7 +87,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: v${{ needs.update-version.outputs.version }} + # Use tag for real releases, develop branch for dry runs + ref: ${{ github.event.inputs.dry_run == 'true' && 'develop' || format('v{0}', needs.update-version.outputs.version) }} - name: Setup Node.js uses: actions/setup-node@v4 @@ -154,7 +155,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: v${{ needs.update-version.outputs.version }} + # Use tag for real releases, develop branch for dry runs + ref: ${{ github.event.inputs.dry_run == 'true' && 'develop' || format('v{0}', needs.update-version.outputs.version) }} - name: Setup Node.js uses: actions/setup-node@v4 @@ -220,7 +222,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: v${{ needs.update-version.outputs.version }} + # Use tag for real releases, develop branch for dry runs + ref: ${{ github.event.inputs.dry_run == 'true' && 'develop' || format('v{0}', needs.update-version.outputs.version) }} - name: Setup Node.js uses: actions/setup-node@v4 @@ -264,7 +267,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: v${{ needs.update-version.outputs.version }} + # Use tag for real releases, develop branch for dry runs + ref: ${{ github.event.inputs.dry_run == 'true' && 'develop' || format('v{0}', needs.update-version.outputs.version) }} - name: Setup Node.js uses: actions/setup-node@v4