-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: check that docs don't need to be regenerated
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,24 @@ jobs: | |
configFile: './package.json' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 12.x | ||
- name: install | ||
run: yarn | ||
- name: regenerate docs | ||
run: yarn tools:regenerate-docs | ||
- name: report regenerated docs | ||
run: | | ||
git diff --name-only \ | ||
| xargs -I '{}' bash -c \ | ||
'echo "::error file={}::This needs to be regenerated by running \`tools:regenerate-docs\`" && false' | ||
danger: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|