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).
This commit is contained in:
committed by
Mark Pollack
parent
008a760fa7
commit
6df84845a2
1
.github/workflows/continuous-inspection.yml
vendored
1
.github/workflows/continuous-inspection.yml
vendored
@@ -9,6 +9,7 @@ jobs:
|
||||
code-quality-analysis:
|
||||
name: code quality analysis report
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'spring-projects' }}
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
1
.github/workflows/continuous-integration.yml
vendored
1
.github/workflows/continuous-integration.yml
vendored
@@ -8,6 +8,7 @@ jobs:
|
||||
build:
|
||||
name: Build branch
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'spring-projects' }}
|
||||
services:
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
||||
2
.github/workflows/deploy-docs.yml
vendored
2
.github/workflows/deploy-docs.yml
vendored
@@ -9,7 +9,7 @@ permissions:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'spring-projects'
|
||||
if: ${{ github.repository_owner == 'spring-projects' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
1
.github/workflows/pr-check.yml
vendored
1
.github/workflows/pr-check.yml
vendored
@@ -9,6 +9,7 @@ jobs:
|
||||
build:
|
||||
name: Build branch
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository_owner == 'spring-projects' }}
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user