Skip to content

Commit 1ea529d

Browse files
terraboopsclaude
andauthored
fix: gate publish job on push events only (#8)
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 <noreply@anthropic.com>
1 parent 8665e53 commit 1ea529d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/agentic-marketplace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
publish:
7777
needs: generate
78-
if: ${{ !inputs.dry-run }}
78+
if: ${{ !inputs.dry-run && github.event_name == 'push' }}
7979
runs-on: ubuntu-latest
8080
permissions:
8181
contents: write

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bc-github-actions",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Reusable GitHub Actions workflows for Claude Code plugin marketplaces",
55
"private": false,
66
"scripts": {

0 commit comments

Comments
 (0)