Skip to content

Commit

Permalink
chore: split build and doc diff checker workflows (#323)
Browse files Browse the repository at this point in the history
* chore: split build and doc diff checker workflos

* chore: rename
  • Loading branch information
avirtopeanu-ionos authored Aug 2, 2023
1 parent 3b6840e commit 223644f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build and Scan
on:
push:
branches:
Expand All @@ -14,17 +14,6 @@ jobs:
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."
git diff
exit 1
fi
- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/docs.yml
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

0 comments on commit 223644f

Please sign in to comment.