From 0aba7a02df96d0a5a90c5dc5c8e27bf60e15ea5d Mon Sep 17 00:00:00 2001 From: Leo Borai Date: Mon, 22 Dec 2025 23:12:45 +0100 Subject: [PATCH] fix(cd): use single if on main step --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d10846cf..c477d780 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: publish-dry-run: name: "Runs cargo publish --dry-run" runs-on: ubuntu-latest - if: ${{ github.event.pull_request.merged }} + if: ${{ always() && (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') }} steps: - name: Checkout uses: actions/checkout@v6 @@ -58,7 +58,7 @@ jobs: build-binaries: name: Build binaries - if: ${{ (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && needs.publish-dry-run.result == 'success' }} + needs: publish-dry-run strategy: matrix: include: @@ -146,7 +146,6 @@ jobs: name: Create Release needs: build-binaries runs-on: ubuntu-latest - if: ${{ (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && needs.build-binaries.result == 'success' }} steps: - name: Checkout uses: actions/checkout@v6