Action Reference

Everything you can pass to cristobalmitchell/releaseray@v1 with with:, everything it returns, and what its exit codes mean. The behavior these inputs override is set in Configuration.


Modes

The mode input picks what a run does.

modeWhat it doesLLMWrites
generate (default)Range, fetch, generate per persona, then publish when publish is trueYes, unless stored text is currentRelease and CHANGELOG when publishing
publishWrite job of the hardened split: writes from a notes.json whose digest matchesNoRelease and CHANGELOG
previewRange, PR count, approximate classification and budget estimate; with preview-prompts, the exact prompts as filesNeverNothing
doctorChecks configuration, checkout, tags, token, credentials and visibilityNeverNothing
validate-configThe run's config checks, with no secretsNeverNothing
migrate-personasConverts the hosted App's persona YAML into a config file in the workspaceNeverNothing on GitHub

preview, doctor, validate-config and migrate-personas need no LLM key and only read permissions. The tools workflow in Workflows runs them on demand.

Two more modes, adopt and sync-changelog, arrive in v1.1. They take over releases and CHANGELOG entries that the hosted ReleaseRay App already published.


Inputs

Blank values fall back to the defaults shown.

InputDefaultMeaning
modegenerateSee above
github-tokengithub.tokenGITHUB_TOKEN, a fine-grained PAT, or a GitHub App token; also used for the CHANGELOG push
config.releaseray/config.ymlConfig path (for migrate-personas, where to write)
tothe event's tagEnd tag, or HEAD for unreleased changes
fromhighest-SemVer ancestor tagStart tag
since, until, keyDate window instead of tags; key names it
personasall enabledComma-separated slugs
publishtrue on release and tag pushesWrite the GitHub targets
create-releasefalseCreate the release when none exists
pushoutputs.changelog.pushPush the CHANGELOG entry
notes-dir, expected-digestFor publish: the artifact path and the generate job's notes-digest
allow-non-ancestorfalseAllow an explicit from on another line of history
forcefalseRegenerate even when stored text is current
allow-sparsefalseGenerate even when the input is thin
preview-promptsfalseFor preview: fetch and write the exact prompts
personas-file.releaseray/personas.ymlFor migrate-personas
all-tags, notifyReserved for adopt, sync-changelog and notifications in v1.1

How the range is chosen

  • to is the release tag: the event's tag on release and tag-push events, or what you pass. HEAD means unreleased changes since the last tag.
  • from defaults to the highest-SemVer tag that is an ancestor of to and matches range.tagPattern (v* by default). Prerelease tags are skipped unless range.includePrereleases is true.
  • A date window (since, optional until, and a key to name it) replaces tags, for teams that don't tag releases.

Everything comes from local git, so the checkout needs fetch-depth: 0.


Outputs

OutputMeaning
keyRelease key
fromResolved start ref
toResolved end ref
notes-dirDirectory with the persona files and notes.json
notes-digestsha256 of notes.json
release-urlURL of the GitHub Release found or written
release-changedtrue when the release block was created or updated
changelog-changedtrue when a CHANGELOG entry was written
github-requestsREST requests counted against the primary limit
llm-callsLLM calls made
llm-cost-usdEstimated LLM cost, or n/a when the model's price is unknown

Give the step an id to read them, for example ${{ steps.notes.outputs.release-url }}.


Secrets

Secrets are environment variables, never inputs:

  • OpenAI, or an OpenAI-compatible endpoint: OPENAI_API_KEY.
  • Anthropic: ANTHROPIC_API_KEY, with llm.provider: anthropic.
  • AWS Bedrock: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN, for example from aws-actions/configure-aws-credentials.

Exit Codes

Exit codeMeaningUsual fix
2Configuration, input, event or range errorRead the error annotations; mode: validate-config lists config problems
3The request budget or prompt size does not fit, or GitHub refused a writeTurn off enrichment.comments, lower maxLinkedIssues or maxBodyChars, or pass a PAT or App token
4GitHub data could not be fetched completelyCheck the token's permissions; re-run after a rate-limit reset
5The model's output was invalid after retries, or the input was too thinRe-run, try another model, or set allow-sparse
6The CHANGELOG push was rejectedUse the App-token recipe or the CHANGELOG pull request recipe
7One output was written and another failedRe-run: outputs already written are no-ops

Troubleshooting

Start with mode: doctor from the tools workflow. Its summary is what an issue report needs.

No notes for a release.

  • Releases or tags created with GITHUB_TOKEN start no workflows. If semantic-release or another workflow publishes your releases, run ReleaseRay inside that job or dispatch the quickstart workflow from it. See Workflows.
  • Runs waiting for approval. On public repositories, GitHub can hold a run it flags until a collaborator with write access approves it. Look for a pending run on the Actions tab.
  • Draft releases. Creating or editing a draft starts nothing; publishing it does.
  • More than three tags pushed at once start no tag-push runs. Dispatch the quickstart workflow for each tag.

"The checkout is shallow". Set fetch-depth: 0 on actions/checkout. Ranges are resolved from local tags.

"No commit in the range names a pull request". Pull request numbers come from Merge pull request #n and (#n) in commit subjects. Rebase merges keep neither, so the notes fall back to commit messages. Squash or merge commits give the best notes.

A hand-edited block was not updated. That is onHumanEdit: skip protecting the edit. Set it to overwrite, or delete the block to regenerate it.

The release was created without notes. GITHUB_TOKEN cannot create a release whose commit changes .github/workflows/. Pass a PAT or App token as github-token.


Related docs:

We value your privacy

We use cookies to enhance your experience. Essential cookies are required for the site to function. You can choose to accept all cookies or manage your preferences.