Skip to content
Open
Changes from 1 commit
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
29 changes: 29 additions & 0 deletions .github/workflows/auto-translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Auto Translate

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: 'Trigger Auto-Translate Workflow'
permissions:
contents: write
pull-requests: write
uses: newfold-labs/workflows/.github/workflows/auto-translate.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 }}
NEWFOLD_ACCESS_TOKEN: ${{ secrets.NEWFOLD_ACCESS_TOKEN }}
Loading