diff --git a/.gitea/workflows/hugo_site_deployment.yml b/.gitea/workflows/hugo_site_deployment.yml index 148dc06..745dc37 100644 --- a/.gitea/workflows/hugo_site_deployment.yml +++ b/.gitea/workflows/hugo_site_deployment.yml @@ -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