Skip to content

Comments

fix: gate publish job on push events only#8

Merged
terraboops merged 1 commit intomainfrom
terra/fix-publish-on-pr
Feb 13, 2026
Merged

fix: gate publish job on push events only#8
terraboops merged 1 commit intomainfrom
terra/fix-publish-on-pr

Conversation

@terraboops
Copy link
Collaborator

Summary

  • Add github.event_name == 'push' to the publish job condition so it never runs on PR CI events
  • dry-run alone wasn't sufficient — callers that didn't pass dry-run: true on PRs would trigger PR creation (e.g. PR #40 from PR #38's CI run)
  • Bumps version to 1.0.3

Test plan

  • CI passes
  • On PR: discover, validate, generate run; publish is skipped
  • On push to main: all 4 jobs run

🤖 Generated with Claude Code

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>
@terraboops terraboops merged commit 1ea529d into main Feb 13, 2026
4 checks passed
@terraboops terraboops deleted the terra/fix-publish-on-pr branch February 13, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant