From 559f502411e20259623242b5a067af256d5c14b0 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Tue, 22 Jul 2025 22:16:30 +0200 Subject: [PATCH] [GHA] Simplify `if` in UPLOAD_BUILD_ARTIFACTS --- .github/workflows/build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8aac1ff8cf..46cb2e47f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,14 +154,12 @@ jobs: TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-public-${{ matrix.release }}-artifact UPLOAD_BUILD_ARTIFACTS: >- ${{ - (github.event.pull_request.head.repo.full_name == github.repository) && ( - ( - github.event_name != 'pull_request' && - github.event_name != 'workflow_dispatch' - ) || - (github.event_name == 'workflow_dispatch' && inputs.publish) - ) + github.event_name == 'push' && + github.repository == 'signalwire/freeswitch' && + contains(fromJSON('["master", "v1.10"]'), github.ref_name) + ) || + (github.event_name == 'workflow_dispatch' && inputs.publish) }} secrets: GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }} -- 2.47.2