Support checks in forked repositories

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
Benoit Donneaux 2025-08-19 10:35:28 +02:00
parent f9f1495df5
commit 3a900964c0
3 changed files with 4 additions and 1 deletions

View file

@ -56,6 +56,7 @@ jobs:
jekyll build --verbose
- name: Deploy Jekyll site
id: deploy_site
if: forge.repository == 'Tahoe-LAFS/web-landing-page'
run: |
if [ "${{ forge.ref }}" = 'refs/heads/main' ]; then
WEB_ROOT="${WEB_DIR}/live"
@ -79,7 +80,7 @@ jobs:
./_site/ "${WEB_USER}@${WEB_HOST}:${WEB_ROOT}${WEB_CONTEXT}"
- name: Comment pull request
id: comment_pull_request
if: ${{ always() && forge.event_name == 'pull_request' }}
if: ${{ always() && forge.event_name == 'pull_request' && forge.repository == 'Tahoe-LAFS/web-landing-page' }}
uses: https://github.com/exercism/pr-commenter-action@v1.5.1
with:
template-variables: |

View file

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