Skip to content

Commit 2bbb735

Browse files
authored
Merge pull request #2867 from signalwire/gha-meta-job
[GHA] Simplify `if` logic for Meta job
2 parents fcab28a + b8fb017 commit 2bbb735

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,9 @@ jobs:
192192
name: "Publish build data to meta-repo"
193193
if: >-
194194
${{
195-
(github.event.pull_request.head.repo.full_name == github.repository) &&
196-
(
197-
(
198-
github.event_name != 'pull_request' &&
199-
github.event_name != 'workflow_dispatch'
200-
) ||
201-
(github.event_name == 'workflow_dispatch' && inputs.publish)
202-
)
195+
github.event_name == 'push' &&
196+
github.repository == 'signalwire/freeswitch' &&
197+
contains(fromJSON('["master", "v1.10"]'), github.ref_name)
203198
}}
204199
needs:
205200
- deb-public

0 commit comments

Comments
 (0)