Skip to content

Replace softprops/action-gh-release with gh CLI - #1092

Merged
dwcullop merged 3 commits into
reactivemarbles:mainfrom
dwcullop:bugfix/fix_gh_release
May 26, 2026
Merged

Replace softprops/action-gh-release with gh CLI#1092
dwcullop merged 3 commits into
reactivemarbles:mainfrom
dwcullop:bugfix/fix_gh_release

Conversation

@dwcullop

Copy link
Copy Markdown
Member

Problem

release.yml fails with startup_failure on every push to main and release/*.x because softprops/action-gh-release@v2.6.2 is not on this repository's allowed-actions list.

Repro: https://github.com/reactivemarbles/DynamicData/actions/runs/26430799048

Fix

Replace the action with gh release create from the GitHub CLI (pre-installed on the windows runner). Same inputs (tag, title, notes, prerelease flag), no third-party dependency, no policy change required.

softprops/action-gh-release is not on the repository's allowed-actions list, causing release.yml to fail with startup_failure on every push to main and release/*.x. The pre-installed gh CLI on windows runners produces an equivalent GitHub Release without requiring a third-party action.
@dwcullop
dwcullop enabled auto-merge (squash) May 26, 2026 05:17
@dwcullop dwcullop added bug github_actions Pull requests that update Github_actions code labels May 26, 2026
@dwcullop
dwcullop requested a review from Copilot May 26, 2026 05:21
@glennawatson

Copy link
Copy Markdown
Member

You may want to have a look at https://github.com/reactiveui/actions-common or https://github.com/glennawatson/nustreamdocs for how I generate release notes btw. I moved away from what is happening in this repo to a newer tool

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the release workflow to avoid using a third-party action that is blocked by the repository’s allowed-actions policy, restoring the ability to publish releases from main and release/*.x.

Changes:

  • Replaces softprops/action-gh-release@v2.6.2 with gh release create (GitHub CLI) in .github/workflows/release.yml.
  • Wires tag/title/prerelease/notes inputs into the CLI invocation via workflow step env vars.

Comment thread .github/workflows/release.yml
Large changelogs can exceed the Windows command-line buffer when passed as --notes. Writing to a file and using --notes-file removes the size constraint.
@dwcullop
dwcullop merged commit 46ccd1a into reactivemarbles:main May 26, 2026
2 of 3 checks passed
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants