From 4c0ad08db320555156890fb721032b51445ca9d1 Mon Sep 17 00:00:00 2001 From: Hugh Hackman Date: Tue, 17 Mar 2026 12:34:16 +0000 Subject: [PATCH] ci: install gh CLI in release workflow for self-hosted runners The self-hosted runner (local-ubuntu-latest) does not have gh CLI pre-installed, causing the PR creation step to fail with "gh: command not found" after the release is published. Co-Authored-By: Paperclip --- .github/workflows/plugin-release.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/plugin-release.yaml b/.github/workflows/plugin-release.yaml index 771b28f..9876115 100644 --- a/.github/workflows/plugin-release.yaml +++ b/.github/workflows/plugin-release.yaml @@ -150,6 +150,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install GitHub CLI + run: | + if ! command -v gh &>/dev/null; then + curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg + echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null + sudo apt-get update && sudo apt-get install -y gh + fi + - name: Create PR for version bump run: | VERSION="${{ inputs.version }}"