Skip to content

Commit

Permalink
Prevent build from failing due to empty git stash.
Browse files Browse the repository at this point in the history
Also try to build docs from PR's in the future.
  • Loading branch information
aadyotb committed Sep 23, 2021
1 parent 9a7e6f8 commit 89f0b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [ published ]

Expand Down
2 changes: 1 addition & 1 deletion docs/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ EOF

# Return to original git state
git switch "$GIT_BRANCH"
git stash pop
git stash pop || true

0 comments on commit 89f0b75

Please sign in to comment.