]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[GHA] Simplify `if` in UPLOAD_BUILD_ARTIFACTS 2868/head
authors3rj1k <evasive.gyron@gmail.com>
Tue, 22 Jul 2025 20:16:30 +0000 (22:16 +0200)
committers3rj1k <evasive.gyron@gmail.com>
Tue, 22 Jul 2025 20:16:30 +0000 (22:16 +0200)
.github/workflows/build.yml

index 8aac1ff8cf13863397d361fc9f1522bda0cd7e6b..46cb2e47f25140cc1f8f2e419d097f30fa8e67f4 100644 (file)
@@ -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 }}