Compare commits

...

6 commits

Author SHA1 Message Date
Benoit Donneaux 454dbc522b Cleanup
All checks were successful
Jekyll / jekyll (pull_request) Successful in 36s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 11:10:25 +02:00
Benoit Donneaux f019d1951a Try event
All checks were successful
Jekyll / jekyll (pull_request) Successful in 40s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 11:08:16 +02:00
Benoit Donneaux 6be872c78b Debug pull_request
Some checks failed
Jekyll / jekyll (pull_request) Failing after 44s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 11:04:50 +02:00
Benoit Donneaux 8bcea717df Try head.repo.fork
Some checks failed
Jekyll / jekyll (pull_request) Failing after 38s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 11:02:10 +02:00
Benoit Donneaux a353d9963c Debug forge object to filter events
Some checks failed
Jekyll / jekyll (pull_request) Failing after 39s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 10:51:04 +02:00
Benoit Donneaux 3a900964c0 Support checks in forked repositories
Some checks failed
Jekyll / jekyll (pull_request) Failing after 44s
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
2025-08-19 10:35:28 +02:00
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.event.pull_request.head.repo.fork }}
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.event.pull_request.head.repo.fork }}
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.event.pull_request.head.repo.fork }}
runs-on: ubuntu-22.04
permissions:
pull-requests: read

View file

@ -21,3 +21,4 @@ docker-compose up
We welcome contributions! Easiest is to open tickets or pull requests directly. If unsure, join the IRC or ask on the Tahoe-LAFS developer mailing list.
**Caveat**: because they need access to the repository secrets (e.g. SSH private key), the deployment step will be skipped on forked repositories. Which means preview sites will only be published from local branches pushed by collaborators with permissions to write in this repository.