Skip to content

Commit b0ad3c5

Browse files
committed
Remove auto-commit API report workflow
1 parent 1daf8b4 commit b0ad3c5

File tree

2 files changed

+13
-50
lines changed

2 files changed

+13
-50
lines changed

.github/workflows/check-docs.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,24 @@ jobs:
3535
run: yarn
3636
- name: Run doc generation
3737
run: yarn docgen:all
38+
- name: Check for changes in common/api-review dir (fail if so)
39+
run: |
40+
if [[ -n "$(git status common/api-review --porcelain)" ]]; then
41+
echo "Unstaged changes detected in api-report(s):"
42+
git status -s
43+
echo "COMMAND_TO_RUN='yarn build'" >> $GITHUB_OUTPUT
44+
exit 1
45+
fi
46+
# Overwrite the command if there are also docs-devsite changes since
47+
# running yarn docgen:all will also run yarn build first.
3848
- name: Check for changes in docs-devsite dir (fail if so)
3949
run: |
4050
if [[ -n "$(git status docs-devsite --porcelain)" ]]; then
41-
echo "Unstaged changes detected:"
51+
echo "Unstaged changes detected in docs-devsite/:"
4252
git status -s
53+
echo "COMMAND_TO_RUN='yarn docgen:all'" >> $GITHUB_OUTPUT
4354
exit 1
4455
fi
4556
- name: Reference documentation needs to be updated. See message below.
4657
if: ${{ failure() }}
47-
run: echo "Changes in this PR affect the reference docs. Run \`yarn docgen:all\` locally to regenerate docs and add them to this PR."
58+
run: echo "Changes in this PR affect the reference docs or API reports. Run \`$COMMAND_TO_RUN\` locally to regenerate the changed files and add them to this PR."

.github/workflows/update-api-reports.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)