Skip to content

Commit b80e22a

Browse files
committed
improve docs
1 parent 9e737bb commit b80e22a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/EXAMPLES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ jobs:
569569
steps:
570570
- name: Checkout
571571
uses: actions/checkout@v4
572+
with:
573+
persist-credentials: false
572574
573575
- name: Generate GitHub App Token
574576
id: generate-token
@@ -599,6 +601,9 @@ To set this up:
599601

600602
For more details, see [GitHub issue #270](https://github.com/crowdin/github-action/issues/270).
601603

604+
> **Note**
605+
> When using a GitHub App token via `GH_TOKEN`, the Checkout step must use `persist-credentials: false`. Otherwise, the default `GITHUB_TOKEN` cached in `.git/config` by `actions/checkout` takes precedence over `GH_TOKEN`, and the action will not use your App token for creating pull requests.
606+
602607
### Checking the translation progress
603608

604609
```yaml

0 commit comments

Comments
 (0)