Skip to content

Commit fe46cb2

Browse files
committed
ci(mdbook): fix workflow for forks and update mdbook version
- Skip build/deploy jobs on forks where GitHub Pages isn't configured - Update mdbook from 0.4.36 to 0.5.1 for mermaid preprocessor compatibility
1 parent 58deae8 commit fe46cb2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/mdbook.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
# Build job
2929
build:
3030
runs-on: ubuntu-latest
31+
# Only run on the main repository, not on forks
32+
if: github.repository == 'symposium-dev/symposium-acp'
3133
env:
32-
MDBOOK_VERSION: 0.4.36
34+
MDBOOK_VERSION: 0.5.1
3335
steps:
3436
- uses: actions/checkout@v4
3537
- name: Install mdBook
@@ -55,6 +57,8 @@ jobs:
5557
url: ${{ steps.deployment.outputs.page_url }}
5658
runs-on: ubuntu-latest
5759
needs: build
60+
# Only run on the main repository, not on forks
61+
if: github.repository == 'symposium-dev/symposium-acp'
5862
steps:
5963
- name: Deploy to GitHub Pages
6064
id: deployment

0 commit comments

Comments
 (0)