Try event

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 6b4a6c551b
2 changed files with 3 additions and 3 deletions

View file

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

View file

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