Skip to content

fix: ai chatのover uiの大きさの調節 #49

fix: ai chatのover uiの大きさの調節

fix: ai chatのover uiの大きさの調節 #49

name: Translate README
on:
pull_request:
branches:
- develop
paths:
- README.md
permissions:
contents: write
jobs:
translate_readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Confirm current branch
run: |
echo "Current branch: $(git branch --show-current)"
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
- name: Install OpenAI library
run: pip install openai
- name: Run translation script
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: python .github/scripts/translate_readme.py
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README_EN.md README_CN.md README_ES.md README_FR.md
if git diff-index --quiet HEAD; then
echo "No changes to commit."
else
git commit -m "Update translations"
echo "Changes committed successfully."
git push origin HEAD:${{ github.event.pull_request.head.ref }}
fi