FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docs/.github/workflows/article-api-docs.yml at main · github/docs · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
docs
Public
Notifications
You must be signed in to change notification settings
Fork
68.5k
Star
20.7k
Code
Issues
75
Pull requests
34
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docs
/
.github
/
workflows
/
article-api-docs.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
45 lines (36 loc) · 1.32 KB
Breadcrumbs
docs
/
.github
/
workflows
/
article-api-docs.yml
Copy path
File metadata and controls
45 lines (36 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
'
Check article-api docs
'
#
**What it does**: Makes sure changes to the article api are documented.
#
**Why we have it**: So what's documented doesn't fall behind
#
**Who does it impact**: Docs engineering, CGS team
on
:
workflow_dispatch
:
pull_request
:
paths
:
-
'
src/article-api/middleware/article.ts
'
-
'
src/article-api/middleware/pagelist.ts
'
#
Self-test
-
.github/workflows/article-api-docs.yml
permissions
:
contents
:
read
jobs
:
check-content-linter-rules-docs
:
runs-on
:
ubuntu-latest
if
:
github.repository == 'github/docs-internal' || github.repository == 'github/docs'
steps
:
-
name
:
Checkout
uses
:
actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
#
v7.0.0
-
uses
:
./.github/actions/node-npm-setup
-
name
:
Check that src/article-api/README.md is up-to-date
run
:
npm run generate-article-api-docs
-
name
:
Fail if it isn't up-to-date
run
:
|
if [ -n "$(git status --porcelain)" ]; then
git status
git diff
# Some whitespace for the sake of the message below
echo ""
echo ""
echo "src/article-api/README.md is out of date."
echo "Please run 'npm run generate-article-api-docs' and commit the changes."
exit 1;
fi
Back
|
FazBrowse Home
|
New Git URL