Skip to content

Commit 22dfc1a

Browse files
committed
Add auto translate trigger workflow
1 parent c4b4005 commit 22dfc1a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/auto-translate.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Auto Translate
2+
3+
on:
4+
push:
5+
branches:
6+
- 'trunk'
7+
workflow_dispatch:
8+
9+
# Cancels all previous workflow runs for the branch that have not completed.
10+
concurrency:
11+
# The concurrency group contains the workflow name and the branch name.
12+
group: ${{ github.workflow }}-${{ github.ref_name }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
jobs:
18+
translate:
19+
name: 'Trigger Auto-Translate Workflow'
20+
permissions:
21+
contents: write
22+
pull-requests: write
23+
uses: newfold-labs/workflows/.github/workflows/auto-translate.yml@main
24+
with:
25+
text_domain: 'wp-module-onboarding'
26+
pr_branch_name: 'trunk'
27+
secrets:
28+
TRANSLATOR_API_KEY: ${{ secrets.TRANSLATOR_API_KEY }}
29+
NEWFOLD_ACCESS_TOKEN: ${{ secrets.NEWFOLD_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)