Skip to content

Integrate Reusable Azure AI Translation Workflow from Central Repository #780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/auto-translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check for Updates to Translations

on:
push:
branches:
- 'trunk'
workflow_dispatch:

# Cancels all previous workflow runs for the branch that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

permissions: {}

jobs:
translate:
name: 'Check and update translations'
permissions:
contents: write
pull-requests: write
uses: newfold-labs/workflows/.github/workflows/reusable-translations.yml@main
with:
text_domain: 'wp-module-onboarding'
pr_branch_name: 'trunk'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pr_branch_name: 'trunk'

This is no longer required or accepted. The github.ref_name will be used by default.

secrets:
TRANSLATOR_API_KEY: ${{ secrets.TRANSLATOR_API_KEY }}
24 changes: 0 additions & 24 deletions .github/workflows/i18n-update.yml

This file was deleted.

8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
"@i18n-php",
"@i18n-json"
],
"i18n-ci-pre": [
"@i18n-pot",
"@i18n-po"
],
"i18n-ci-post": [
"@i18n-json",
"@i18n-php"
],
"lint": [
"vendor/bin/phpcs . --standard=phpcs.xml"
]
Expand Down
Loading