Skip to content

Commit 2c982db

Browse files
committed
Differentiate between PRs from forks and non-forks [skip ci]
1 parent 5b21619 commit 2c982db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- master
66
jobs:
77
maven-verify:
8+
if: github.event.pull_request.head.repo.fork == true
89
runs-on: ubuntu-24.04
910
steps:
1011
- uses: actions/checkout@v4

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
1717
jobs:
1818
maven-package:
19-
if: "!contains(github.event.head_commit.message, 'ci skip')"
19+
if: github.repository_owner == 'entur' && !contains(github.event.head_commit.message, 'ci skip')
2020
runs-on: ubuntu-24.04
2121
steps:
2222
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)