File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- name : Build and commit docs
1
+ name : Build documentation
2
2
3
3
on :
4
4
push :
5
5
branches : ['main']
6
6
workflow_dispatch : {}
7
+ workflow_call : {}
7
8
8
9
permissions :
9
10
contents : write
10
11
pull-requests : write
11
12
13
+
12
14
jobs :
13
15
build :
14
- # prevent subsequent commits from triggering the job multiple times
15
- concurrency :
16
- group : ci-${{ github.ref }}
17
- cancel-in-progress : true
18
-
19
16
runs-on : ubuntu-latest
20
17
21
18
steps :
22
19
- uses : actions/checkout@v5
20
+
23
21
- name : Install Node and dependencies
24
22
uses : mongodb-labs/drivers-github-tools/node/setup@v2
23
+
25
24
- name : Install Hugo
26
25
run : |
27
26
apt-get update && apt-get install curl
30
29
echo "~/hugo" >> $GITHUB_PATH
31
30
- name : Build Docs
32
31
run : npm run build:docs -- --yes
33
- - name : Open Pull Request
34
- uses : peter-evans/create-pull-request@v6
35
- with :
36
- title : ' docs: generate docs from latest main [skip-ci]'
37
- delete-branch : true
32
+
You can’t perform that action at this time.
0 commit comments