Skip to content

Comments

split generate into generate + publish for PR compatibility#7

Merged
terraboops merged 1 commit intomainfrom
terra/split-generate-publish
Feb 13, 2026
Merged

split generate into generate + publish for PR compatibility#7
terraboops merged 1 commit intomainfrom
terra/split-generate-publish

Conversation

@terraboops
Copy link
Collaborator

Summary

  • Split the generate composite action into generate (pure file generation) and publish (PR creation, auto-merge, releases)
  • Split the workflow's generate job so it always runs (can be a required status check on PRs), with a new publish job gated by dry-run
  • Auto-merge failure now warns instead of failing the workflow (for repos without allow_auto_merge enabled)
  • Bumps version to 1.0.2

Test plan

  • CI passes (test.yml)
  • On PR: discover, validate, generate all run and report status (publish skipped)
  • On push to main: all 4 jobs run, PR created with marketplace changes

🤖 Generated with Claude Code

The generate job was gated by `if: !inputs.dry-run`, which meant it was
skipped on PRs and couldn't serve as a required status check. Split the
composite action and workflow job so generation always runs (validating
the output) while side effects (PR creation, auto-merge, releases) only
happen in the new publish job.

- generate action: pure file generation, read-only, no token needed
- publish action: PR creation, auto-merge (graceful failure), releases
- workflow: generate always runs; publish gated by dry-run

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@terraboops terraboops merged commit 8665e53 into main Feb 13, 2026
4 checks passed
@terraboops terraboops deleted the terra/split-generate-publish branch February 13, 2026 06:04
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