Skip to content
Merged
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .github/workflows/publishTypedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ jobs:
run: |
cd docs
git add .
git diff --cached --quiet && echo "No docs changes to publish" && exit 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there are changes, git diff --quiet will return a non-zero exit code, and I believe the way it's done here will crash the job. I think you'll need to combine this line with the next one to create something more like this instead:

git diff --cached --quiet || git commit -m "docs: publishing gh-pages [skip ci]" --no-verify

git commit -m 'docs: publishing gh-pages [skip ci]' --no-verify
git push origin gh-pages --no-verify