Skip to content

Replace third-party actions with gh CLI for releases and PRs#551

Merged
niik merged 5 commits into
mainfrom
niik/use-gh-cli-for-releases
May 20, 2026
Merged

Replace third-party actions with gh CLI for releases and PRs#551
niik merged 5 commits into
mainfrom
niik/use-gh-cli-for-releases

Conversation

@niik

@niik niik commented May 20, 2026

Copy link
Copy Markdown
Member

Replace softprops/action-gh-release and peter-evans/create-pull-request actions with direct gh CLI commands.

Changes

  • release.yml: Use gh release create instead of softprops/action-gh-release@v2
  • update-dependencies.yml: Use git + gh pr create instead of peter-evans/create-pull-request@v7

This reduces our dependency on third-party actions for core workflow operations.

niik and others added 2 commits May 20, 2026 11:50
Replace the softprops/action-gh-release action with a direct
gh release create command for creating GitHub releases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…quest

Replace the peter-evans/create-pull-request action with git commands
and gh pr create for creating the dependency update pull request.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@niik
niik requested a review from a team as a code owner May 20, 2026 09:51
@niik
niik requested review from Copilot and sergiou87 May 20, 2026 09:51

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 removes dependencies on third-party GitHub Actions for creating releases and dependency update PRs by switching to direct gh CLI invocations within the existing workflows.

Changes:

  • Replace peter-evans/create-pull-request@v7 with git + gh pr create in the dependency update workflow.
  • Replace softprops/action-gh-release@v2 with gh release create in the release workflow.
Show a summary per file
File Description
.github/workflows/update-dependencies.yml Swaps PR creation from a third-party action to explicit git commit/push and gh pr create.
.github/workflows/release.yml Swaps release publishing from a third-party action to gh release create with notes and uploaded artifacts.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment thread .github/workflows/update-dependencies.yml
Comment thread .github/workflows/update-dependencies.yml Outdated
Comment thread .github/workflows/update-dependencies.yml
niik and others added 3 commits May 20, 2026 13:10
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Pass the PR title through an environment variable instead of
interpolating it directly into shell commands to prevent potential
command substitution if the title contains shell metacharacters.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move the app token generation before the checkout step and pass it
via the token input so that git push authenticates with the app
identity rather than the default GITHUB_TOKEN.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread .github/workflows/update-dependencies.yml
Comment thread .github/workflows/update-dependencies.yml
@niik
niik merged commit f97e50a into main May 20, 2026
17 checks passed
@niik
niik deleted the niik/use-gh-cli-for-releases branch May 20, 2026 11:59
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.

3 participants