-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.15 KB
/
pr-verify-deployment.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: verify
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
does-build:
runs-on: ubuntu-latest
# env:
# THROW_ON_BROKEN_LINKS: true # TODO:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: package-lock.jso
- name: Set git config for pull.ff only
run: git config --global pull.ff only
- name: Clear old docs references
run: make fresh
- name: pull docs from current latest
run: make sync-docs
- name: build-docs w/o errors
run: make build-docs
uses-latest-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: grab latest commits
run: make latest-commits
- name: check for latest commits diff
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "There are changes in the latest-commits"
exit 1
else
echo "No changes in the latest-commits"
fi