Skip to content

Commit f1bad65

Browse files
committed
Detect running on PR from fork differently
1 parent 3863e62 commit f1bad65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test_pages_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ permissions: {}
1616

1717
jobs:
1818
run:
19-
# Only run in the canonical repository to avoid failures on forks
20-
if: ${{ github.repository == 'nfdi-de/dcat-ap-plus' }}
19+
# Don't run for PRs from forks
20+
if: github.event.pull_request.head.repo.full_name == github.repository
2121
# Grant GITHUB_TOKEN the permissions required to make a gh-pages deployment
2222
permissions:
2323
contents: write # to let mkdocs write the new docs

0 commit comments

Comments
 (0)