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.
mode | What it does | LLM | Writes |
|---|---|---|---|
generate (default) | Range, fetch, generate per persona, then publish when publish is true | Yes, unless stored text is current | Release and CHANGELOG when publishing |
publish | Write job of the hardened split: writes from a notes.json whose digest matches | No | Release and CHANGELOG |
preview | Range, PR count, approximate classification and budget estimate; with preview-prompts, the exact prompts as files | Never | Nothing |
doctor | Checks configuration, checkout, tags, token, credentials and visibility | Never | Nothing |
validate-config | The run's config checks, with no secrets | Never | Nothing |
migrate-personas | Converts the hosted App's persona YAML into a config file in the workspace | Never | Nothing 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.
| Input | Default | Meaning |
|---|---|---|
mode | generate | See above |
github-token | github.token | GITHUB_TOKEN, a fine-grained PAT, or a GitHub App token; also used for the CHANGELOG push |
config | .releaseray/config.yml | Config path (for migrate-personas, where to write) |
to | the event's tag | End tag, or HEAD for unreleased changes |
from | highest-SemVer ancestor tag | Start tag |
since, until, key | Date window instead of tags; key names it | |
personas | all enabled | Comma-separated slugs |
publish | true on release and tag pushes | Write the GitHub targets |
create-release | false | Create the release when none exists |
push | outputs.changelog.push | Push the CHANGELOG entry |
notes-dir, expected-digest | For publish: the artifact path and the generate job's notes-digest | |
allow-non-ancestor | false | Allow an explicit from on another line of history |
force | false | Regenerate even when stored text is current |
allow-sparse | false | Generate even when the input is thin |
preview-prompts | false | For preview: fetch and write the exact prompts |
personas-file | .releaseray/personas.yml | For migrate-personas |
all-tags, notify | Reserved for adopt, sync-changelog and notifications in v1.1 |
How the range is chosen
tois the release tag: the event's tag onreleaseand tag-push events, or what you pass.HEADmeans unreleased changes since the last tag.fromdefaults to the highest-SemVer tag that is an ancestor oftoand matchesrange.tagPattern(v*by default). Prerelease tags are skipped unlessrange.includePrereleasesis true.- A date window (
since, optionaluntil, and akeyto name it) replaces tags, for teams that don't tag releases.
Everything comes from local git, so the checkout needs fetch-depth: 0.
Outputs
| Output | Meaning |
|---|---|
key | Release key |
from | Resolved start ref |
to | Resolved end ref |
notes-dir | Directory with the persona files and notes.json |
notes-digest | sha256 of notes.json |
release-url | URL of the GitHub Release found or written |
release-changed | true when the release block was created or updated |
changelog-changed | true when a CHANGELOG entry was written |
github-requests | REST requests counted against the primary limit |
llm-calls | LLM calls made |
llm-cost-usd | Estimated 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, withllm.provider: anthropic. - AWS Bedrock:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYandAWS_SESSION_TOKEN, for example fromaws-actions/configure-aws-credentials.
Exit Codes
| Exit code | Meaning | Usual fix |
|---|---|---|
| 2 | Configuration, input, event or range error | Read the error annotations; mode: validate-config lists config problems |
| 3 | The request budget or prompt size does not fit, or GitHub refused a write | Turn off enrichment.comments, lower maxLinkedIssues or maxBodyChars, or pass a PAT or App token |
| 4 | GitHub data could not be fetched completely | Check the token's permissions; re-run after a rate-limit reset |
| 5 | The model's output was invalid after retries, or the input was too thin | Re-run, try another model, or set allow-sparse |
| 6 | The CHANGELOG push was rejected | Use the App-token recipe or the CHANGELOG pull request recipe |
| 7 | One output was written and another failed | Re-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_TOKENstart 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: