Update URL for JGRPP 中文百科 #1
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: Trigger Read the Docs Build for PRs | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Determine build version | |
id: get-version | |
run: | | |
echo "::set-output name=version::pr-${{ github.event.pull_request.number }}" | |
- name: Trigger Read the Docs build | |
run: | | |
curl -X POST "https://readthedocs.org/api/v3/projects/ottdzh/versions/${{ steps.get-version.outputs.version }}/builds/" \ | |
-H "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}" | |
env: | |
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }} |