Skip to content

Commit 1da05d8

Browse files
authored
[GHA] Skip mirror and meta jobs on public forks (#322)
1 parent addf02c commit 1da05d8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
name: 'DEB-MIRROR'
6767
if: >-
6868
${{
69+
github.repository == 'freeswitch/sofia-sip' &&
6970
(github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.publish)) &&
7071
(!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)
7172
}}
@@ -133,8 +134,9 @@ jobs:
133134
name: 'Publish build data to meta-repo'
134135
if: >-
135136
${{
136-
github.event_name == 'push' ||
137-
(github.event_name == 'workflow_dispatch' && inputs.publish)
137+
github.repository == 'freeswitch/sofia-sip' &&
138+
(github.event_name == 'push' ||
139+
(github.event_name == 'workflow_dispatch' && inputs.publish))
138140
}}
139141
needs:
140142
- deb

0 commit comments

Comments
 (0)