Skip to content

Commit d792fba

Browse files
GitHub Actions CI: Builders run only once in pull requests in the same repository (#6222)
#6221 (comment) Completes #6090 (comment)
1 parent 55956f8 commit d792fba

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release-win7.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
check-assets:
1313
runs-on: ubuntu-latest
14+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1415
steps:
1516
- name: Restore Geodat Cache
1617
uses: actions/cache/restore@v5
@@ -75,6 +76,7 @@ jobs:
7576
fail-fast: false
7677

7778
runs-on: ubuntu-latest
79+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
7880
env:
7981
GOOS: ${{ matrix.goos}}
8082
GOARCH: ${{ matrix.goarch }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
check-assets:
1313
runs-on: ubuntu-latest
14+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1415
steps:
1516
- name: Restore Geodat Cache
1617
uses: actions/cache/restore@v5
@@ -161,6 +162,7 @@ jobs:
161162
fail-fast: false
162163

163164
runs-on: ubuntu-latest
165+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
164166
env:
165167
GOOS: ${{ matrix.goos }}
166168
GOARCH: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)