Trying different approach for file list.
This commit is contained in:
@@ -81,16 +81,16 @@ jobs:
|
||||
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
|
||||
notification_title: 'GITEA: Hugo @ Rinoa'
|
||||
notification_message: 'Starting translations...'
|
||||
- name: get changed files name
|
||||
id: changed_files
|
||||
- name: Get file listing of English content
|
||||
id: list_files
|
||||
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)
|
||||
uses: 3ru/gpt-translate@v1.2.2
|
||||
with:
|
||||
token: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||
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'
|
||||
languages: Spanish Korean Chinese
|
||||
- name: Add/Commit README.md
|
||||
|
||||
Reference in New Issue
Block a user