Add visibility check for public repositories in CI and release workflows
This commit is contained in:
parent
81206311ac
commit
91f9deeb6d
2 changed files with 3 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -8,6 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
tests:
|
||||
if: github.event.repository.visibility == 'public'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
|
|
@ -46,6 +47,7 @@ jobs:
|
|||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
assets:
|
||||
if: github.event.repository.visibility == 'public'
|
||||
runs-on: ubuntu-latest
|
||||
name: Assets
|
||||
|
||||
|
|
|
|||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
|
@ -10,6 +10,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
release:
|
||||
if: github.event.repository.visibility == 'public'
|
||||
runs-on: ubuntu-latest
|
||||
name: Create Release
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue