Skip to content

更新翻译字典

更新翻译字典 #5

Workflow file for this run

name: Save as dict
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checking out GitHub repository
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Saving as dict
run: python3 ./save_dict.py
- name: Pushing via git
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
git remote add target git@github.com:Project-Mealuet/ModsTranslation.git
git config --global user.email "bot@mealuet.com"
git config --global user.name "Mealuet Bot"
git add dict
git commit -m "更新翻译字典"
git push target HEAD:main