Skip to content

Commit

Permalink
docs: enhance examples (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Mar 12, 2024
1 parent c953b17 commit d669507
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [Tips and tricks](#tips-and-tricks)
- [Checking the translation progress](#checking-the-translation-progress)
- [Pre-Translation](#pre-translation)
- [Run test workflows on all commits of a PR](#run-test-workflows-on-all-commits-of-a-pr)

---

Expand Down Expand Up @@ -536,3 +537,18 @@ jobs:
```

Visit the [official documentation](https://crowdin.github.io/crowdin-cli/commands/crowdin-pre-translate) to learn more about the available pre-translation options.

### Run test workflows on all commits of a PR

Every time the job runs and there is already a PR, all checks will be invalidated and not run again (because the action will force pushes even if the translation has not changed).

(Related issues: [#34](https://github.com/crowdin/github-action/issues/34), [#142](https://github.com/crowdin/github-action/issues/142), [#221](https://github.com/crowdin/github-action/issues/221))

To avoid this, add a custom PAT to the checkout action:

```yaml
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GHA_CUSTOM_PAT }}
```

0 comments on commit d669507

Please sign in to comment.