Try event
All checks were successful
Jekyll / jekyll (pull_request) Successful in 40s

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
Benoit Donneaux 2025-08-19 11:07:00 +02:00
parent 6be872c78b
commit f019d1951a
2 changed files with 3 additions and 3 deletions

View file

@ -56,9 +56,9 @@ jobs:
jekyll build --verbose
- name: Deploy Jekyll site
id: deploy_site
if: ${{ ! forge.pull_request.head.repo.fork }}
if: ${{ ! forge.event.pull_request.head.repo.fork }}
run: |
echo '${{ toJson(forge.pull_request.head.repo) }}'
echo '${{ toJson(forge.event.pull_request.head.repo) }}'
if [ "${{ forge.ref }}" = 'refs/heads/main' ]; then
WEB_ROOT="${WEB_DIR}/live"
WEB_VHOST="home.of.${WEB_DOMAIN}"

View file

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