|
4 | 4 | workflow_dispatch: |
5 | 5 | push: |
6 | 6 | paths: |
7 | | - - 'docs/**' |
| 7 | + - docs/** |
| 8 | + - package*.json |
| 9 | + - markdownlint.json |
| 10 | + - .remarkrc.yaml |
| 11 | + - mkdocs.yml |
| 12 | + - .github/workflows/docs.yml |
8 | 13 | pull_request: |
9 | 14 | paths: |
10 | | - - 'docs/**' |
| 15 | + - docs/** |
| 16 | + - package*.json |
| 17 | + - markdownlint.json |
| 18 | + - .remarkrc.yaml |
| 19 | + - mkdocs.yml |
| 20 | + - .github/workflows/docs.yml |
11 | 21 | env: |
12 | 22 | DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2 |
13 | 23 |
|
|
40 | 50 | with: |
41 | 51 | path: tools |
42 | 52 | key: tools-${{ runner.os }}-${{ hashFiles('./build/**') }} |
| 53 | + - |
| 54 | + name: Get npm cache directory |
| 55 | + id: cache-node-dir |
| 56 | + run: echo "::set-output name=dir::$(npm config get cache)" |
| 57 | + - |
| 58 | + name: Cache Node Modules |
| 59 | + id: cache-node |
| 60 | + |
| 61 | + with: |
| 62 | + path: ${{ steps.cache-node-dir.outputs.dir }} |
| 63 | + key: node-${{ runner.os }}-${{ hashFiles('./package-lock.json') }} |
| 64 | + restore-keys: node-${{ runner.os }} |
43 | 65 | - |
44 | 66 | name: Install .NET SDK 6.0.x |
45 | 67 | uses: actions/setup-dotnet@v1 |
@@ -83,19 +105,26 @@ jobs: |
83 | 105 | name: '[Build Documentation]' |
84 | 106 | shell: pwsh |
85 | 107 | run: dotnet run/docs.dll --target=BuildDocs |
86 | | - |
87 | 108 | - |
88 | 109 | name: '[HTMLProofer]' |
89 | 110 | uses: chabad360/htmlproofer@master |
90 | 111 | with: |
91 | 112 | directory: ./artifacts/docs/preview |
92 | 113 | arguments: --url-ignore /api/ --allow-hash-href --assume-extension --disable-external |
| 114 | + - |
| 115 | + name: Reviewdog Reporter |
| 116 | + uses: haya14busa/action-cond@v1 |
| 117 | + id: reporter |
| 118 | + with: |
| 119 | + cond: ${{ github.event_name == 'pull_request' }} |
| 120 | + if_true: github-pr-review |
| 121 | + if_false: github-check |
93 | 122 | - |
94 | 123 | name: '[Remark Lint]' |
95 | | - uses: reviewdog/action-remark-lint@v5 |
| 124 | + uses: reviewdog/action-remark-lint@v5.2 |
96 | 125 | with: |
97 | 126 | github_token: ${{ secrets.GITHUB_TOKEN }} |
98 | | - reporter: github-pr-check |
| 127 | + reporter: ${{ steps.reporter.outputs.value }} |
99 | 128 |
|
100 | 129 | publish: |
101 | 130 | name: Publish docs |
|
0 commit comments