Skip to content

Reorder checks in build docs action #1506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/build-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
Expand Down Expand Up @@ -115,7 +121,7 @@ jobs:
# https://github.com/marketplace/actions/github-pages-action
- name: Deploy docs
if: |
!github.event.pull_request.head.repo.fork &&
github.event.pull_request && !github.event.pull_request.head.repo.fork &&
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
uses: peaceiris/[email protected]
with:
Expand All @@ -124,7 +130,7 @@ jobs:

- name: Publish pull-request docs
if: |
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action != 'closed'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -139,7 +145,7 @@ jobs:

- name: Comment with URL to published pull-request docs
if: |
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action != 'closed'
env:
PR_NUM: ${{ github.event.number }}
uses: mshick/[email protected]
Expand All @@ -150,7 +156,7 @@ jobs:

clean:
if: |
!github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action == 'closed'
github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action == 'closed'

needs: build-and-deploy

Expand Down