Skip to content

feat(actions): support publish_repo: self for single-repo setups#760

Merged
BYK merged 2 commits intomasterfrom
feat/actions-publish-repo-self
Feb 26, 2026
Merged

feat(actions): support publish_repo: self for single-repo setups#760
BYK merged 2 commits intomasterfrom
feat/actions-publish-repo-self

Conversation

@BYK
Copy link
Member

@BYK BYK commented Feb 26, 2026

Problem

The composite action's "Request publish" step always creates a GitHub issue in a dedicated publish repository (defaulting to {owner}/publish). Personal repos and small orgs don't have this repo, causing the action to fail.

See: https://github.com/BYK/opencode-lore/actions/runs/22450348783

Solution

Add support for a "self" sentinel value on the existing publish_repo input. When set, the publish request issue is created in the source repository itself instead of a separate publish repo — where the default GITHUB_TOKEN already has issue write access.

Changes

  • action.yml: Resolve PUBLISH_REPO=self$GITHUB_REPOSITORY in bash before any gh CLI calls
  • docs/ and README.md: Document the "self" option for publish_repo

Usage

uses: getsentry/craft/.github/workflows/release.yml@v2
with:
  version: auto
  publish_repo: self

No changes to release.yml — it already passes publish_repo through as-is.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-02-26 21:13 UTC

@BYK BYK marked this pull request as ready for review February 26, 2026 20:29
@BYK BYK force-pushed the feat/actions-publish-repo-self branch from 33b3b0f to 6fec91f Compare February 26, 2026 20:29
@BYK BYK merged commit 91416b4 into master Feb 26, 2026
18 of 19 checks passed
@BYK BYK deleted the feat/actions-publish-repo-self branch February 26, 2026 21:12
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