#3.
Deploy Hugo Site / Check and Create PR (push) Successful in 13s
Deploy Hugo Site / Hugo Translations (push) Successful in 8s

This commit is contained in:
2025-07-25 11:20:52 -04:00
parent 4093487107
commit fd30c781b3
+7 -1
View File
@@ -69,6 +69,8 @@ jobs:
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 2
- run: | - run: |
pwd pwd
ls -al ls -al
@@ -79,12 +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
id: changed_files
run: |
echo "files=$(git diff --name-only HEAD^ HEAD | grep '\.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: content/en/*.md inputFiles: ${{ steps.changed_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