This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2.1
2+
3+ orbs :
4+ go : circleci/go@1
5+
6+ jobs :
7+ gen-apidocs :
8+ executor :
9+ name : go/default
10+ tag : ' 1.19.1'
11+ parameters :
12+ committer_name :
13+ type : string
14+ default : TriggerMesh Bot
15+ committer_email :
16+ type : string
17+ default : bot@triggermesh.com
18+ steps :
19+ - checkout
20+ - add_ssh_keys :
21+ fingerprints :
22+ - " aa:03:46:c4:da:eb:da:02:ad:c0:3a:bc:5f:62:02:9c"
23+ - run : ssh-keyscan github.com >> ~/.ssh/known_hosts
24+ - run :
25+ name : Configuring git
26+ command : |
27+ git config --global user.name '<< parameters.committer_name >>'
28+ git config --global user.email '<< parameters.committer_email >>'
29+ - run :
30+ name : Cloning docs repository
31+ command : git clone --single-branch git@github.com:triggermesh/docs.git tm-docs
32+ - run :
33+ name : Run gen-apidocs
34+ command : TRIGGERMESH_COMMIT=${CIRCLE_TAG:-$CIRCLE_SHA1} make gen-apidocs
35+ environment :
36+ DOCS_OUTPUT_DIR : ~/project/tm-docs/docs/reference/
37+ - run :
38+ name : Committing updates to triggermesh/docs
39+ working_directory : tm-docs/
40+ command : |
41+ if ! git diff --exit-code --quiet; then
42+ git --no-pager diff
43+ git add docs/reference/
44+ git commit -m "Generated with gen-crd-api-reference-docs on git commit triggermesh-core:${CIRCLE_TAG:-${CIRCLE_SHA1}}"
45+ git push origin main
46+ fi
47+
48+ workflows :
49+ test-and-publish :
50+ jobs :
51+ - gen-apidocs :
52+ filters :
53+ tags :
54+ only : /^v([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$/
55+ branches :
56+ only : main
You can’t perform that action at this time.
0 commit comments