Skip to content

Commit 4cea291

Browse files
Merge pull request #365 from johntruckenbrodt/cicd/github_actions_fork
[cicd] also run github actions runs on PRs from forks
2 parents e7f193a + 404f1d9 commit 4cea291

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/conda-install.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: conda build
22

3-
on: [ push ]
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
types: [ opened, reopened, synchronize ]
9+
10+
permissions:
11+
contents: read
412

513
jobs:
614
build-linux:
@@ -53,7 +61,8 @@ jobs:
5361
PGUSER: postgres
5462
PGPASSWORD: Password12!
5563
- name: Publish to coveralls.io
56-
uses: coverallsapp/github-action@v2
64+
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
65+
uses: coverallsapp/github-action@v2.3.0
5766
with:
5867
github-token: ${{ github.token }}
5968
format: cobertura

0 commit comments

Comments
 (0)