forked from knative/func
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 983 Bytes
/
Copy pathci-check.yaml
File metadata and controls
43 lines (37 loc) · 983 Bytes
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
name: Check
# Documentation-only companion to the Functions workflow.
#
# The Functions workflow ignores documentation changes (see its `paths-ignore`),
# so this workflow covers exactly those paths and runs only the checks that
# apply to them (`make check-docs`). The two trigger sets are disjoint: a
# doc-only change runs Check, a code change runs Functions.
on:
push:
branches:
- main
- 'release-*'
paths:
- 'docs/**/*.md'
- '*.md'
pull_request:
branches:
- main
- 'release-*'
paths:
- 'docs/**/*.md'
- '*.md'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check-docs:
name: Check Docs
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: knative/actions/setup-go@main
- name: Check Docs
run: make check-docs