There was an error while loading. Please reload this page.
2 parents 1e3d2d5 + 8333bb6 commit 5a269efCopy full SHA for 5a269ef
1 file changed
.github/workflows/preview-readme.yaml
@@ -10,6 +10,14 @@ on:
10
11
jobs:
12
preview-readme:
13
+ # This job checks out the head branch by name and posts the rendered README
14
+ # diff back as a PR comment. Both of those require the head branch to live in
15
+ # this repo and a write-scoped GITHUB_TOKEN. Neither holds for fork PRs: the
16
+ # branch exists only in the fork (so `actions/checkout` with a bare `ref:`
17
+ # fetches refs/heads/<branch> from this repo and fails), and the
18
+ # pull_request event grants forks a read-only token (so createComment 403s).
19
+ # Skip forks; internal branches still get the preview.
20
+ if: github.event.pull_request.head.repo.full_name == github.repository
21
runs-on: ubuntu-latest
22
timeout-minutes: 5
23
steps:
0 commit comments