Skip to content

Commit fed6170

Browse files
committed
Add workflow to automate the .pot .po .php .json file generation
1 parent c70bcb8 commit fed6170

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/i18n-update.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: i18n Update Action
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger when code is merged into main
7+
workflow_dispatch: # Allows manual trigger with a branch input
8+
inputs:
9+
base_branch:
10+
description: "Base branch for the pull request"
11+
required: false
12+
default: "main"
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
18+
jobs:
19+
call-i18n-update:
20+
uses: newfold-labs/workflows/.github/workflows/i18n-update.yml@main
21+
with:
22+
base_branch: ${{ inputs.base_branch }}
23+
secrets:
24+
NEWFOLD_ACCESS_TOKEN: ${{ secrets.NEWFOLD_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)