Try head.repo.fork
Some checks failed
Jekyll / jekyll (pull_request) Failing after 38s

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
Benoit Donneaux 2025-08-19 10:58:52 +02:00
parent a353d9963c
commit 8bcea717df
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ jobs:
jekyll build --verbose
- name: Deploy Jekyll site
id: deploy_site
if: forge.repository == 'Tahoe-LAFS/web-landing-page'
if: ${{ ! forge.pull_request.head.repo.fork }}
run: |
echo '${{ toJson(forge) }}'
if [ "${{ forge.ref }}" = 'refs/heads/main' ]; then

View file

@ -12,7 +12,7 @@ env:
WEB_CONTEXT: "/${{ forge.event.pull_request.number }}/"
jobs:
jekyll_cleanup:
if: forge.repository == 'Tahoe-LAFS/web-landing-page'
if: ${{ ! forge.pull_request.head.repo.fork }}
runs-on: ubuntu-22.04
permissions:
pull-requests: read