Skip to content

ci(release): Switch from action-prepare-release to Craft#1858

Open
BYK wants to merge 14 commits intomasterfrom
ci/migrate-to-craft-action
Open

ci(release): Switch from action-prepare-release to Craft#1858
BYK wants to merge 14 commits intomasterfrom
ci/migrate-to-craft-action

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/release.yml to Craft reusable workflow
  • Updated .craft.yml with versioning.policy: calver

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/release.yml to Craft reusable workflow
- Update .craft.yml with versioning.policy: calver
@BYK BYK requested a review from a team as a code owner January 9, 2026 18:05
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 9, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Handle turbopack file paths by chargome in #1855

Build / dependencies / internal 🔧

  • (build) Release Docker image to GHCR via Craft by aldy505 in #1856
  • (release) Switch from action-prepare-release to Craft by BYK in #1858

🤖 This preview updates automatically when you update the PR.

Comment thread .github/workflows/changelog-preview.yml Fixed
Comment thread .github/workflows/release.yml Fixed
Comment thread .github/workflows/release.yml Outdated
Comment on lines +37 to +38
version: ${{ inputs.version }}
force: ${{ inputs.force }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The scheduled release workflow passes empty strings for inputs.version and inputs.force to the craft action, which may cause the run to fail.
Severity: HIGH

Suggested Fix

Conditionally provide a default value for the inputs when the workflow is triggered by a schedule. For example, you can use a ternary expression to default to 'auto' for the version: version: ${{ github.event_name == 'workflow_dispatch' && inputs.version || 'auto' }}. A similar approach can be used for the force input if needed.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/release.yml#L37-L38

Potential issue: The `release.yml` workflow is configured to run on both
`workflow_dispatch` and a `schedule`. When triggered by the schedule, the `inputs`
context is empty. Consequently, empty strings are passed for the `version` and `force`
parameters to the `getsentry/craft` action. It is unconfirmed how the `craft` action
handles empty string inputs for these parameters. This could potentially lead to a
failure during the automated, scheduled release process if the action does not have a
fallback or default behavior.

Did we get this right? 👍 / 👎 to inform future reviews.

@BYK
Copy link
Copy Markdown
Member Author

BYK commented Jan 14, 2026

I think this is ready to be merged?

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.

2 participants