Skip to content

Commit 294c9ec

Browse files
committed
[skip ci] Skip push to forks
Creating PRs against forks requries having up-to-date target branches. Pushing to these currently triggers CI, which is useless as this commit was already tested upstream. Contributions are tested via pull request.
1 parent 97e6c54 commit 294c9ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ env:
4343
CXX: ccache g++
4444
jobs:
4545
LINUX_X64:
46+
if: github.repository_owner == 'php' || github.event_name == 'pull_request'
4647
services:
4748
mysql:
4849
image: mysql:8
@@ -148,6 +149,7 @@ jobs:
148149
if: ${{ !matrix.asan }}
149150
uses: ./.github/actions/verify-generated-files
150151
MACOS_DEBUG_NTS:
152+
if: github.repository_owner == 'php' || github.event_name == 'pull_request'
151153
strategy:
152154
fail-fast: false
153155
matrix:
@@ -189,6 +191,7 @@ jobs:
189191
- name: Verify generated files are up to date
190192
uses: ./.github/actions/verify-generated-files
191193
WINDOWS:
194+
if: github.repository_owner == 'php' || github.event_name == 'pull_request'
192195
name: WINDOWS_X64_ZTS
193196
runs-on: windows-2019
194197
env:

0 commit comments

Comments
 (0)