-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 1.09 KB
/
pull_request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: set up, test and build with mdbook
on:
pull_request:
branches:
- main
jobs:
check_links_and_build_with_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
- name: Read versions.env
id: versions
run: |
. .github/workflows/versions.env
echo "mdbook_version=$MDBOOK_VERSION" >>$GITHUB_OUTPUT
echo "opengh_version=$OPENGH_VERSION" >>$GITHUB_OUTPUT
- name: Setup mdbook
uses: jontze/action-mdbook@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Optional Plugins have to be enabled with a version
mdbook-version: "${{ steps.versions.outputs.mdbook_version }}" # Use a semver compatible string
use-opengh: true
opengh-version: "${{ steps.versions.outputs.opengh_version }}"
- name: Build mdbook (with checks)
run: mdbook build