Skip to content

Commit 04123ab

Browse files
committed
CI: Skip documentation deployment step outside of forks
1 parent 0526b5c commit 04123ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/documentation_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ jobs:
5151
if: github.ref == 'refs/heads/main'
5252
uses: actions/configure-pages@v4
5353
- name: Upload Artifact
54-
if: github.ref == 'refs/heads/main'
54+
if: github.ref == 'refs/heads/main' && github.repository == 'Pagghiu/SaneCppLibraries'
5555
uses: actions/upload-pages-artifact@v3
5656
with:
5757
# location of the coverage artifacts
5858
path: "_Build/_Documentation/docs"
5959

6060
deploy:
61-
if: github.ref == 'refs/heads/main'
61+
if: github.ref == 'refs/heads/main' && github.repository == 'Pagghiu/SaneCppLibraries'
6262
runs-on: ubuntu-latest
6363
needs: build
6464

0 commit comments

Comments
 (0)