auto assign PR on 18.0 / Unable to resolve action cli/gh-action, repository not found

This commit is contained in:
Eric Seigne 2026-02-05 09:43:02 +01:00
parent 72ed29a599
commit 07a3d0e4b7

View file

@ -50,8 +50,21 @@ jobs:
uses: actions/checkout@v4
# 3) Install / configure GitHub CLI (gh) on the runner
- name: Setup GitHub CLI (gh)
uses: cli/gh-action@v3
#- name: Setup GitHub CLI (gh)
# uses: cli/gh-action@v3
# -> Error: Unable to resolve action cli/gh-action, repository not found
- name: Setup GitHub CLI (gh) (install locally)
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y gh || {
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
sudo chmod go+r /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
}
gh --version
# Debug information (useful for diagnostics)
- name: Debug info