From 888594a89f6b66570e688335aa5ab85c77c9afe5 Mon Sep 17 00:00:00 2001 From: terra tauri Date: Thu, 12 Feb 2026 22:13:40 -0800 Subject: [PATCH] fix: gate publish job on push events only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish job ran on pull_request events because `dry-run` alone wasn't sufficient — callers that didn't pass `dry-run: true` on PRs would trigger PR creation from CI. Add `github.event_name == 'push'` so publish only runs on merges to main regardless of dry-run. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/agentic-marketplace.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agentic-marketplace.yml b/.github/workflows/agentic-marketplace.yml index 8438bb2..f57d394 100644 --- a/.github/workflows/agentic-marketplace.yml +++ b/.github/workflows/agentic-marketplace.yml @@ -75,7 +75,7 @@ jobs: publish: needs: generate - if: ${{ !inputs.dry-run }} + if: ${{ !inputs.dry-run && github.event_name == 'push' }} runs-on: ubuntu-latest permissions: contents: write diff --git a/package.json b/package.json index 6ae3983..69daaa8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bc-github-actions", - "version": "1.0.2", + "version": "1.0.3", "description": "Reusable GitHub Actions workflows for Claude Code plugin marketplaces", "private": false, "scripts": {