Skip to content

Commit 2f98cab

Browse files
committed
[WORKFLOW] restrict docs deploy to default branch
1 parent a729649 commit 2f98cab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Only run for the default branch
2+
if: github.ref_name == github.event.repository.default_branch
3+
14
name: Deploy Sphinx documentation to Pages
25

36
on:
@@ -17,4 +20,4 @@ jobs:
1720
id-token: write
1821
steps:
1922
- id: deployment
20-
uses: sphinx-notes/pages@v3
23+
uses: sphinx-notes/pages@v3

0 commit comments

Comments
 (0)