From 89eb9f02cd129ad88ace9a6ee92c0a89cdfa8673 Mon Sep 17 00:00:00 2001 From: Seb-sti1 <65665540+seb-sti1@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:39:25 +0100 Subject: [PATCH] fix: restrict triggering of GitHub Actions Closes #43 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1342616..e3ecdc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: build: name: Build distribution runs-on: ubuntu-latest - + if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v4 - name: Set up Python @@ -89,6 +89,7 @@ jobs: publish-to-testpypi: name: Publish Python distribution to TestPyPI + if: github.repository == 'ricklupton/rmscene' # publish to testpypi only on the original repo needs: - build runs-on: ubuntu-latest