Skip to content

Commit ac9b8c6

Browse files
authored
Merge pull request #2868 from signalwire/gha-copy-job
[GHA] Simplify `if` in UPLOAD_BUILD_ARTIFACTS
2 parents 2bbb735 + 559f502 commit ac9b8c6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,12 @@ jobs:
154154
TARGET_ARTIFACT_NAME: ${{ matrix.os }}-${{ matrix.version }}-${{ matrix.platform.name }}-public-${{ matrix.release }}-artifact
155155
UPLOAD_BUILD_ARTIFACTS: >-
156156
${{
157-
(github.event.pull_request.head.repo.full_name == github.repository) &&
158157
(
159-
(
160-
github.event_name != 'pull_request' &&
161-
github.event_name != 'workflow_dispatch'
162-
) ||
163-
(github.event_name == 'workflow_dispatch' && inputs.publish)
164-
)
158+
github.event_name == 'push' &&
159+
github.repository == 'signalwire/freeswitch' &&
160+
contains(fromJSON('["master", "v1.10"]'), github.ref_name)
161+
) ||
162+
(github.event_name == 'workflow_dispatch' && inputs.publish)
165163
}}
166164
secrets:
167165
GH_BOT_DEPLOY_TOKEN: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)