Skip to content

Commit 992208a

Browse files
committed
Revert to only run on PRs
1 parent 735c1f6 commit 992208a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/check-docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
name: Doc Change Check (Run "yarn docgen:all" if this fails)
1616

17-
on: push
17+
on: pull_request
1818

1919
jobs:
2020
doc-check:
@@ -37,8 +37,7 @@ jobs:
3737
run: yarn docgen:all
3838
- name: Check for changes in docs-devsite dir (fail if so)
3939
run: |
40-
STATUS=$(git status docs-devsite --porcelain)
41-
if [[ -n "$STATUS" ]]; then
40+
if [[ -n "$git status docs-devsite --porcelain" ]]; then
4241
echo "Unstaged changes detected:"
4342
git status -s
4443
exit 1

0 commit comments

Comments
 (0)