Skip to content

Commit b02d636

Browse files
authored
Fix build check to work on forks (#54)
1 parent a6adac6 commit b02d636

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

.github/workflows/docusaurus-build.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
branches: [ main ]
88

99
permissions:
10-
statuses: write
1110
contents: read
1211

1312
jobs:
@@ -28,19 +27,4 @@ jobs:
2827
run: npm ci
2928

3029
- name: Build site
31-
run: npm run build
32-
33-
- name: Update Status
34-
if: github.event_name == 'pull_request'
35-
uses: actions/github-script@v7
36-
with:
37-
script: |
38-
const { sha } = context.payload.pull_request.head;
39-
40-
await github.rest.repos.createCommitStatus({
41-
...context.repo,
42-
sha: sha,
43-
state: 'success',
44-
description: 'Docusaurus site built successfully',
45-
context: 'Docusaurus Build'
46-
});
30+
run: npm run build

0 commit comments

Comments
 (0)