Trying different approach for file list.
This commit is contained in:
@@ -81,16 +81,16 @@ jobs:
|
|||||||
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||||
notification_title: 'GITEA: Hugo @ Rinoa'
|
notification_title: 'GITEA: Hugo @ Rinoa'
|
||||||
notification_message: 'Starting translations...'
|
notification_message: 'Starting translations...'
|
||||||
- name: get changed files name
|
- name: Get file listing of English content
|
||||||
id: changed_files
|
id: list_files
|
||||||
run: |
|
run: |
|
||||||
echo "files=$(git diff --name-only HEAD^ HEAD | grep '\.md$' | tr '\n' ' ')" >> $GITHUB_OUTPUT
|
echo "files=$(find content/en -type f -name "*.md" | tr '\n' ' ')" >> $GITHUB_OUTPUT
|
||||||
- name: GPT Translations (es,ko,zh-Hans)
|
- name: GPT Translations (es,ko,zh-Hans)
|
||||||
uses: 3ru/gpt-translate@v1.2.2
|
uses: 3ru/gpt-translate@v1.2.2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
apikey: ${{ secrets.OPENAI_API_KEY }}
|
apikey: ${{ secrets.OPENAI_API_KEY }}
|
||||||
inputFiles: ${{ steps.changed_files.outputs.files }}
|
inputFiles: ${{ steps.list_files.outputs.files }}
|
||||||
outputFiles: 'content/es/*.md content/ko/*.md content/zh-Hans/*.md'
|
outputFiles: 'content/es/*.md content/ko/*.md content/zh-Hans/*.md'
|
||||||
languages: Spanish Korean Chinese
|
languages: Spanish Korean Chinese
|
||||||
- name: Add/Commit README.md
|
- name: Add/Commit README.md
|
||||||
|
|||||||
Reference in New Issue
Block a user