Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ jobs:

## Running the Workflow

> [!WARNING]
> **GitHub-hosted Runner Time Limit:**
> GitHub-hosted runners such as `ubuntu-latest` have a **maximum execution time limit of 6 hours**.
> For large documentation repositories, if the translation process exceeds 6 hours, the workflow will be automatically terminated.
> To prevent this, consider:
> - Using a **self-hosted runner** (no time limit)
> - Reducing the number of target languages per run

Once the `co-op-translator.yml` file is merged into your main branch (or the branch specified in the `on:` trigger), the workflow will automatically run whenever changes are pushed to that branch (and match the `paths` filter, if configured).

If translations are generated or updated, the action will automatically create a Pull Request containing the changes, ready for your review and merging.
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,16 @@ jobs:
4. **Customize the Workflow:**
- **[!IMPORTANT] Target Languages:** In the `Run Co-op Translator` step, you **MUST review and modify the list of language codes** within the `translate -l "..." -y` command to match your project's requirements. The example list (`ar de es...`) needs to be replaced or adjusted.
- **Trigger (`on:`):** The current trigger runs on every push to `main`. For large repositories, consider adding a `paths:` filter (see commented example in the YAML) to run the workflow only when relevant files (e.g., source documentation) change, saving runner minutes.
- **PR Details:** Customize the `commit-message`, `title`, `body`, `branch` name, and `labels` in the `Create Pull Request` step if needed.
- **PR Details:** Customize the `commit-message`, `title`, `body`, `branch` name, and `labels` in the `Create Pull Request` step if needed.

## Running the Workflow

> [!WARNING]
> **GitHub-hosted Runner Time Limit:**
> GitHub-hosted runners such as `ubuntu-latest` have a **maximum execution time limit of 6 hours**.
> For large documentation repositories, if the translation process exceeds 6 hours, the workflow will be automatically terminated.
> To prevent this, consider:
> - Using a **self-hosted runner** (no time limit)
> - Reducing the number of target languages per run

Once the `co-op-translator.yml` file is merged into your main branch (or the branch specified in the `on:` trigger), the workflow will automatically run whenever changes are pushed to that branch (and match the `paths` filter, if configured).