Skip to content

Commit 28b7350

Browse files
committed
Fix conditions for PR tests
1 parent 7048278 commit 28b7350

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/tests-pr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
check_title_format:
2525
name: PR title must not start with "Fix for issue <number>"
26-
if: github.actor != 'dependabot[bot]'
26+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout source
@@ -47,7 +47,7 @@ jobs:
4747

4848
mandatory-checks-section-exists:
4949
if: >
50-
(github.repository_owner != 'JabRef') && !(
50+
(github.event.pull_request.head.repo.full_name != 'JabRef/jabref') && !(
5151
(github.actor == 'dependabot[bot]') ||
5252
(
5353
startsWith(github.event.pull_request.title, '[Bot] ') ||
@@ -83,7 +83,7 @@ jobs:
8383

8484
checklist-checked:
8585
if: >
86-
(github.repository_owner != 'JabRef') &&
86+
(github.event.pull_request.head.repo.full_name != 'JabRef/jabref') &&
8787
!(
8888
(github.actor == 'dependabot[bot]') ||
8989
(
@@ -139,7 +139,7 @@ jobs:
139139

140140
changelog_modified:
141141
name: CHANGELOG.md needs to be modified
142-
if: (github.actor != 'dependabot[bot]') && (github.repository_owner != 'JabRef')
142+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
143143
runs-on: ubuntu-latest
144144
steps:
145145
- uses: actions/checkout@v4
@@ -175,7 +175,7 @@ jobs:
175175
# This ensures that no git merge conflict markers (<<<, ...) are contained
176176
merge_conflict_job:
177177
name: Find merge conflicts
178-
if: (github.actor != 'dependabot[bot]') && (github.repository_owner != 'JabRef')
178+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
179179
runs-on: ubuntu-latest
180180
steps:
181181
- uses: actions/checkout@v4
@@ -185,7 +185,7 @@ jobs:
185185
uses: olivernybroe/action-conflict-finder@v4.1
186186

187187
no-force-push:
188-
if: (github.actor != 'dependabot[bot]') && (github.repository_owner != 'JabRef')
188+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
189189
runs-on: ubuntu-latest
190190
steps:
191191
- name: Checkout repository
@@ -209,7 +209,7 @@ jobs:
209209
210210
unmodified_submodules:
211211
name: Submodules not modified
212-
if: (github.actor != 'dependabot[bot]') && (github.repository_owner != 'JabRef')
212+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
213213
runs-on: ubuntu-latest
214214
steps:
215215
# No checkout -> the action uses GitHub's API (which is more reliable for submodule changes due to our submodule settings)
@@ -229,7 +229,7 @@ jobs:
229229
230230
other_than_main:
231231
name: Source branch is other than "main"
232-
if: (github.actor != 'dependabot[bot]') && (github.repository_owner != 'JabRef')
232+
if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name != 'JabRef/jabref'
233233
runs-on: ubuntu-latest
234234
steps:
235235
- if: github.head_ref == 'main'

0 commit comments

Comments
 (0)