-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split build and doc diff checker workflows (#323)
* chore: split build and doc diff checker workflos * chore: rename
- Loading branch information
1 parent
3b6840e
commit 223644f
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Docs | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
jobs: | ||
check_diff: | ||
name: Check Generated Docs Diff | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run make docs | ||
run: make docs | ||
|
||
- name: Check for differences | ||
run: | | ||
if ! git diff --quiet; then | ||
echo "There are differences in the generated documentation. Run `make docs` to fix." | ||
git diff | ||
exit 1 | ||
fi |