From 90fd131006d7ae9c4641faef7e206b85eea15a15 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 4 Jul 2026 20:06:17 +0200 Subject: [PATCH 1/3] Restrict release workflow to the main branch --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 710cdabf..a9bd21d8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ on: jobs: check: - if: github.repository == 'ultralytics/inference' + if: github.repository == 'ultralytics/inference' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: write From cac02d2e84f354483637aba0b93b614703d83726 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 4 Jul 2026 20:52:51 +0200 Subject: [PATCH 2/3] Add actor gate to restrict releases to the maintainer --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a9bd21d8..e439b400 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ on: jobs: check: - if: github.repository == 'ultralytics/inference' && github.ref == 'refs/heads/main' + if: github.repository == 'ultralytics/inference' && github.actor == 'glenn-jocher' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: write From 8f8ef1c57db3f92ef36d1a0f032983221ddd4f92 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 4 Jul 2026 20:55:13 +0200 Subject: [PATCH 3/3] Revert actor gate: inference does not require one to publish --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e439b400..a9bd21d8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ on: jobs: check: - if: github.repository == 'ultralytics/inference' && github.actor == 'glenn-jocher' && github.ref == 'refs/heads/main' + if: github.repository == 'ultralytics/inference' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: write