You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/EXAMPLES.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ jobs:
131
131
132
132
The Action/CLI will automatically detect the [environment variables](https://crowdin.github.io/crowdin-cli/configuration#environment-variables) and use them for the configuration.
133
133
134
-
> **Note**
134
+
> [!NOTE]
135
135
> To avoid any conflicts, do not use the `crowdin.yml` file in the repository when using the above configuration approach.
136
136
137
137
### Upload sources only
@@ -195,7 +195,7 @@ Note that the value of the `crowdin_branch_name` is `env.BRANCH_NAME` - this is
195
195
196
196
The Crowdin CLI supports a `--cache` parameter for the `upload sources` command that stores source file checksums locally. This allows the CLI to only upload files that have changed, significantly reducing upload time for large projects.
197
197
198
-
> **Note**
198
+
> [!NOTE]
199
199
> The cache feature is experimental. For any feedback, visit [Crowdin CLI Discussions](https://github.com/crowdin/crowdin-cli/discussions).
200
200
201
201
To persist the cache between workflow runs, use the `actions/cache` action to save and restore the cache file located at `~/.crowdin/cache.json`:
> If you are using a **String-based** project, you need to use this option to download translations. The default `download_translations` option does not work for this type of projects.
307
307
308
308
The `download_bundle` option accepts the bundle numeric ID.
@@ -569,6 +569,8 @@ jobs:
569
569
steps:
570
570
- name: Checkout
571
571
uses: actions/checkout@v4
572
+
with:
573
+
persist-credentials: false
572
574
573
575
- name: Generate GitHub App Token
574
576
id: generate-token
@@ -599,6 +601,9 @@ To set this up:
599
601
600
602
For more details, see [GitHub issue #270](https://github.com/crowdin/github-action/issues/270).
601
603
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.
0 commit comments