Improve clarity on configuring for forkable repos

Add a note to signify that a workflow-based run won't execute in a PR and must be merged into `main` first.
This commit is contained in:
Abel Braaksma 2022-11-24 18:28:51 +01:00 committed by GitHub
parent 074fe2cd27
commit f191e67022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,8 @@ To workaround this security restriction, it's required to use two separate workf
1. `CI` runs in the context of the PR head branch with the read-only token. It executes the tests and uploads test results as a build artifact
2. `Test Report` runs in the context of the repository main branch with read/write token. It will download test results and create reports
The second workflow will only run after it has been merged into your default branch (typically `main` or `master`), it won't run in a PR unless after the workflow file is part of that branch.
**PR head branch:** *.github/workflows/ci.yml*
```yaml
name: 'CI'