From 91f9deeb6d0e626eb39fb57a75d275ab9f527d88 Mon Sep 17 00:00:00 2001 From: Snider Date: Mon, 26 Jan 2026 23:12:45 +0000 Subject: [PATCH] Add visibility check for public repositories in CI and release workflows --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b3e7c2..b37b20f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d8f8d0..da1ba48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,7 @@ permissions: jobs: release: + if: github.event.repository.visibility == 'public' runs-on: ubuntu-latest name: Create Release