From ad435d9a53818ef63eb27c9cc15cb5fd42a52097 Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Fri, 21 Feb 2025 22:01:05 +0100 Subject: [PATCH] fix: workflow condition (#1861) --- .github/workflows/ci-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 93e3804b..a343dd5d 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -464,10 +464,10 @@ jobs: release-nightly: name: Nightly release on ${{ matrix.platform.id }} - if: > + if: > github.event_name == 'schedule' - || github.event.inputs.release_nightly != 'false' - || contains(github.event.pull_request.title, 'nightly') + || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_nightly != 'false') + || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, 'nightly')) needs: [build, build-macos-universal] runs-on: ${{ matrix.platform.os }} @@ -542,8 +542,8 @@ jobs: name: Nightly AppImage if: > github.event_name == 'schedule' - || github.event.inputs.release_nightly != 'false' - || contains(github.event.pull_request.title, 'nightly') + || (github.event_name == 'workflow_dispatch' && github.event.inputs.release_nightly != 'false') + || (github.event_name == 'pull_request' && contains(github.event.pull_request.title, 'nightly')) needs: [appimage] runs-on: ubuntu-22.04 -- 2.39.5