Skip to content

Commit 27cbbda

Browse files
fix(actions): never run mirroring and Docker images build on forks (#1537)
1 parent 51a7a2c commit 27cbbda

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ jobs:
1313

1414
# 'push' runs on inner branches, 'pull_request' will run only on outer PRs
1515
if: >
16-
github.event_name == 'push'
16+
github.repository_owner == 'OpenVK'
17+
&& (github.event_name == 'push'
1718
|| (github.event_name == 'pull_request'
18-
&& github.event.pull_request.head.repo.full_name != github.repository)
19+
&& github.event.pull_request.head.repo.full_name != github.repository))
1920
2021
steps:
2122
- name: Set up QEMU

.github/workflows/codeberg-mirror.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: push
55
jobs:
66
to_codeberg:
77
runs-on: ubuntu-latest
8+
if: github.repository_owner == 'OpenVK'
89
steps:
910
- uses: actions/checkout@v2
1011
with:

0 commit comments

Comments
 (0)