Skip to content

Commit 4889c27

Browse files
fix documentation
1 parent 6986355 commit 4889c27

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.github/workflows/build_and_commit_docs.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,27 @@ on:
55

66
name: Build and commit documentation
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
812
jobs:
913
build-docs:
1014
# prevent subsequent commits from triggering the job multiple times
1115
concurrency:
1216
group: ci-${{ github.ref }}
1317
cancel-in-progress: true
14-
name: "Build documentation."
15-
uses: ./.github/workflows/build.yml
1618

17-
commit-docs:
18-
needs: [build-docs]
19-
permissions:
20-
contents: write
21-
pull-requests: write
22-
runs-on: ubuntu-latest
19+
runs-on: 'ubuntu-latest'
20+
2321
steps:
24-
- name: Open Pull Request
25-
uses: peter-evans/create-pull-request@v6
26-
with:
27-
title: 'docs: generate docs from latest main [skip-ci]'
28-
delete-branch: true
22+
- uses: actions/checkout@v5
23+
24+
- name: "Build documentation"
25+
uses: ./.github/actions/build_documentation
26+
27+
- name: Open Pull Request
28+
uses: peter-evans/create-pull-request@v6
29+
with:
30+
title: 'docs: generate docs from latest main [skip-ci]'
31+
delete-branch: true

.github/workflows/build_docs.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,4 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v5
18-
19-
- name: Install Hugo
20-
run: |
21-
mkdir hugo
22-
curl -L https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_0.150.0_linux-amd64.tar.gz | tar -xzf - -C hugo
23-
echo "$(pwd)/hugo" >> $GITHUB_PATH
24-
25-
- name: Install Node and dependencies
26-
uses: mongodb-labs/drivers-github-tools/node/setup@v2
27-
28-
- name: Build Docs
29-
run: npm run build:docs -- --yes
30-
18+
- uses: ./.github/actions/build_documentation

0 commit comments

Comments
 (0)