Skip to content

Commit 5f3bd1a

Browse files
committed
ci: distinguish between commits from own org and other
1 parent fc69e3c commit 5f3bd1a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,21 @@ jobs:
2626
run: make venv
2727
- name: Check hyperlinks
2828
run: make check-hyperlinks
29+
build-check-foreign:
30+
if: ${{ github.event.pull_request.head.repo.owner.login != 'nitrokey' }}
31+
name: Check Build for Foreign Repository
32+
runs-on: ubuntu-latest
33+
container: python:3.11
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v3
37+
- name: Create virtual environment
38+
run: make venv
39+
- name: Build documentation
40+
run: make
41+
2942
build-check-and-preview-upload:
43+
if: ${{ github.event.pull_request.head.repo.owner.login == 'nitrokey' }}
3044
name: Check Build and Upload to Preview
3145
runs-on: ubuntu-latest
3246
container: python:3.11

0 commit comments

Comments
 (0)