Skip to content

Commit

Permalink
Fix conditional, simplify workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Aug 4, 2023
1 parent 1d0266f commit a271de9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,16 +372,11 @@ jobs:
run: |
tox -e docs-ci
- name: Extract branch name
id: extract_branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- name: Trigger ReadTheDocs build
if: ${{ github.ref_name == "trunk" }}
if: ${{ github.ref_name == 'trunk' }}
env:
RTD_TOKEN: ${{ secrets.RTD_TOKEN }}
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
BRANCH_NAME: "trunk"
run: |
pip install requests
python ./contrib/trigger_rtd_build.py

0 comments on commit a271de9

Please sign in to comment.