Skip to content

update .github/workflows/sync_release_Gitee2GitHub.yml. #4

update .github/workflows/sync_release_Gitee2GitHub.yml.

update .github/workflows/sync_release_Gitee2GitHub.yml. #4

name: 将GItee的最新release同步到Github
env:

Check failure on line 2 in .github/workflows/sync_release_Gitee2GitHub.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync_release_Gitee2GitHub.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
MY_GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}
on:
workflow_dispatch:
inputs:
reason:
description: '触发原因'
required: false
default: '将GItee的最新release同步到Github'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout Gitee repository
run: |
git clone https://gitee.com/zero--two/obsidian-i18n-translation.git
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # 您需要的 Python 版本
- name: Install dependencies
run: |
pip install requests # 安装所需的库
- name: Run script
run: |
python ./obsidian-i18n-translation/script/sync-release-gitee2github.py # 执行脚本