This repository was archived by the owner on Jul 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ name : ' Update generated parts of documentation on docs: commits'
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ docs-gen :
10+ name : ' Generate docs and create PR'
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repo
14+ uses : actions/checkout@v2
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v1
17+ with :
18+ node-version : 14
19+ - name : Install dependencies
20+ run : npm ci
21+ - name : Regenerate docs
22+ run : npm run generate:assets
23+ - name : Create Pull Request with updated docs
24+ # PR should be created within this GH action only if it is a docs: commit
25+ # Otherwise it will conflict with release workflow
26+ if : startsWith(github.event.commits[0].message, 'docs:')
27+ uses : peter-evans/create-pull-request@v3
28+ with :
29+ token : ${{ secrets.GH_TOKEN }}
30+ commit-message : ' chore: update generated docs'
31+ committer : asyncapi-bot <info@asyncapi.io>
32+ author : asyncapi-bot <info@asyncapi.io>
33+ title : ' chore: update generated docs'
34+ body : ' Update of docs that are generated and were forgotten on PR level.'
35+ branch : gen-docs-update
Original file line number Diff line number Diff line change 7373 "get:version" : " echo $npm_package_version" ,
7474 "get:name" : " echo $npm_package_name" ,
7575 "release" : " semantic-release" ,
76- "generate:assets" : " npm run docs" ,
76+ "generate:assets" : " npm run prepublishOnly && npm run docs" ,
7777 "generate:readme:toc" : " markdown-toc -i README.md" ,
7878 "bump:version" : " npm --no-git-tag-version --allow-same-version version $VERSION" ,
7979 "prepublishOnly" : " npm run build"
You can’t perform that action at this time.
0 commit comments