Skip to content

Commit 6df8484

Browse files
jonatan-ivanovmarkpollack
authored andcommitted
Do not trigger GHA workflows on forks
GHA workflows are automatically executed on forks where they fail. This change prevents this (only for those workflows that are automatically triggered, e.g.: on push or schedule).
1 parent 008a760 commit 6df8484

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.github/workflows/continuous-inspection.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
code-quality-analysis:
1010
name: code quality analysis report
1111
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'spring-projects' }}
1213
steps:
1314
- name: Checkout source code
1415
uses: actions/checkout@v4

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
build:
99
name: Build branch
1010
runs-on: ubuntu-latest
11+
if: ${{ github.repository_owner == 'spring-projects' }}
1112
services:
1213
ollama:
1314
image: ollama/ollama:latest

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
if: github.repository_owner == 'spring-projects'
12+
if: ${{ github.repository_owner == 'spring-projects' }}
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4

.github/workflows/pr-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build:
1010
name: Build branch
1111
runs-on: ubuntu-latest
12+
if: ${{ github.repository_owner == 'spring-projects' }}
1213
steps:
1314
- name: Checkout source code
1415
uses: actions/checkout@v4

0 commit comments

Comments
 (0)