Skip to content

Commit 8b5b370

Browse files
elliedorieleftherias
authored andcommitted
Prevent builds from running on forks
Resolves gh-1678
1 parent 21c9fb0 commit 8b5b370

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
build:
2020
name: Build
2121
runs-on: ubuntu-latest
22+
if: github.repository == 'spring-projects/spring-session'
2223
strategy:
2324
matrix:
2425
jdk: [8, 11]
@@ -48,6 +49,7 @@ jobs:
4849
name: Deploy Artifacts
4950
needs: [build]
5051
runs-on: ubuntu-latest
52+
if: github.repository == 'spring-projects/spring-session'
5153
steps:
5254
- uses: actions/checkout@v2
5355
- name: Set up JDK
@@ -76,6 +78,7 @@ jobs:
7678
name: Deploy Docs
7779
needs: [build]
7880
runs-on: ubuntu-latest
81+
if: github.repository == 'spring-projects/spring-session'
7982
steps:
8083
- uses: actions/checkout@v2
8184
- name: Set up JDK

.github/workflows/pr-build-workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build:
77
name: Build
88
runs-on: ubuntu-latest
9+
if: github.repository == 'spring-projects/spring-session'
910
strategy:
1011
matrix:
1112
jdk: [8, 11]

0 commit comments

Comments
 (0)