|
4 | 4 |
|
5 | 5 | jobs: |
6 | 6 | prose: |
7 | | - runs-on: ubuntu-latest |
| 7 | + runs-on: ubuntu-22.04 # See https://github.com/errata-ai/vale-action/issues/128 before upgrading |
| 8 | + permissions: |
| 9 | + contents: read |
| 10 | + pull-requests: write |
8 | 11 | steps: |
9 | | - - name: Checkout |
10 | | - uses: actions/checkout@v4 |
11 | | - with: |
12 | | - fetch-depth: 0 |
13 | | - |
14 | | - - uses: actions/setup-python@v4 |
15 | | - with: |
16 | | - python-version: '3.x' |
17 | | - cache: 'pip' |
18 | | - |
19 | | - - name: Install Python dependencies |
20 | | - run: pip3 install -r docs/requirements.txt |
21 | | - |
22 | | - - name: Vale |
23 | | - uses: errata-ai/vale-action@reviewdog |
24 | | - with: |
25 | | - # Please keep version in sync with the version in .gitpod.Dockerfile for a consistent experience |
26 | | - version: 2.29.2 |
27 | | - fail_on_error: true |
28 | | - env: |
29 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 12 | + - name: Checkout |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + fetch-depth: 0 |
| 16 | + |
| 17 | + - uses: actions/setup-python@v4 |
| 18 | + with: |
| 19 | + python-version: '3.x' |
| 20 | + cache: 'pip' |
| 21 | + |
| 22 | + - name: Install Python dependencies |
| 23 | + run: pip3 install -r docs/requirements.txt |
| 24 | + |
| 25 | + - name: Vale |
| 26 | + uses: errata-ai/vale-action@reviewdog |
| 27 | + with: |
| 28 | + version: 3.7.1 # Please keep version in sync with the version in .gitpod.Dockerfile for a consistent experience |
| 29 | + env: |
| 30 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
30 | 31 |
|
31 | 32 | build: |
32 | 33 | runs-on: ubuntu-latest |
33 | 34 | steps: |
34 | | - - name: Checkout |
35 | | - uses: actions/checkout@v4 |
36 | | - |
37 | | - - uses: actions/setup-python@v4 |
38 | | - with: |
39 | | - python-version: '3.x' |
40 | | - cache: 'pip' |
41 | | - |
42 | | - - name: Install Python dependencies |
43 | | - run: pip3 install -r docs/requirements.txt |
44 | | - |
45 | | - - name: Build docs |
46 | | - working-directory: docs |
47 | | - run: make html |
48 | | - |
49 | | - - name: Check links |
50 | | - working-directory: docs |
51 | | - run: make checklinks |
| 35 | + - name: Checkout |
| 36 | + uses: actions/checkout@v4 |
| 37 | + |
| 38 | + - uses: actions/setup-python@v4 |
| 39 | + with: |
| 40 | + python-version: '3.x' |
| 41 | + cache: 'pip' |
| 42 | + |
| 43 | + - name: Install Python dependencies |
| 44 | + run: pip3 install -r docs/requirements.txt |
| 45 | + |
| 46 | + - name: Build docs |
| 47 | + working-directory: docs |
| 48 | + run: make html |
| 49 | + |
| 50 | + - name: Check links |
| 51 | + working-directory: docs |
| 52 | + run: make checklinks |
0 commit comments