Skip to content
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