Skip to content
Merged
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
Next Next commit
Add i18n composite action to generate taxonomy and page title strings
  • Loading branch information
ryelle committed May 29, 2024
commit 68061e956879bc396c20f115884045c0ab5bfd13
27 changes: 27 additions & 0 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Translate Strings

on:
workflow_dispatch:
schedule:
- cron: '0 6,18 * * *'

jobs:
translation-strings:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: i18n
uses: WordPress/wporg-repo-tools/.github/actions/i18n@try/i18n-action
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --taxonomies=post_tag,category --post_types=page --url=https://wordpress.org/themes/wp-json/wp/v2/ --textdomain=wporg-themes

- name: Commit and push
# Using a specific hash here instead of a tagged version, for risk mitigation, since this action modifies our repo.
uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # 1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: trunk
message: 'Update translation strings'