Trying different approach for file list.
Deploy Hugo Site / Check and Create PR (push) Successful in 8s
Deploy Hugo Site / Hugo Translations (push) Failing after 14s

This commit is contained in:
2025-07-25 11:25:16 -04:00
parent fd30c781b3
commit 4baa7a63d8
+4 -4
View File
@@ -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