添加 翻译插件服务配置文档,更新magic文档 #146
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-pr | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: 检查文档格式 | |
uses: ./.github/workflows/lint.yml | |
permissions: | |
contents: write | |
pull-requests: write | |
with: | |
fix: true | |
secrets: inherit | |
build: | |
name: 构建文档 | |
needs: | |
- lint | |
uses: ./.github/workflows/build.yml | |
upload: | |
name: 请求部署预览 | |
runs-on: ubuntu-latest | |
if: github.repository == 'zotero-chinese/wiki' && github.event_name == 'pull_request' | |
needs: | |
- lint | |
- build | |
steps: | |
- name: 保存 PR 编号 | |
run: | | |
echo "${{ github.event.number }}" > pr_num | |
- name: 上传 PR 编号 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pr-num | |
path: ./pr_num |