Skip to content

Commit 11a4ba1

Browse files
add documetnation build action to PRs
1 parent 2f6ea17 commit 11a4ba1

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/build_docs.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: Build and commit docs
1+
name: Build documentation
22

33
on:
44
push:
55
branches: ['main']
66
workflow_dispatch: {}
7+
workflow_call: {}
78

89
permissions:
910
contents: write
1011
pull-requests: write
1112

13+
1214
jobs:
1315
build:
14-
# prevent subsequent commits from triggering the job multiple times
15-
concurrency:
16-
group: ci-${{ github.ref }}
17-
cancel-in-progress: true
18-
1916
runs-on: ubuntu-latest
2017

2118
steps:
2219
- uses: actions/checkout@v5
20+
2321
- name: Install Node and dependencies
2422
uses: mongodb-labs/drivers-github-tools/node/setup@v2
23+
2524
- name: Install Hugo
2625
run: |
2726
apt-get update && apt-get install curl
@@ -30,8 +29,4 @@ jobs:
3029
echo "~/hugo" >> $GITHUB_PATH
3130
- name: Build Docs
3231
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+

0 commit comments

Comments
 (0)