auto assign PR on 18.0 / Unable to resolve action cli/gh-action, repository not found
This commit is contained in:
parent
72ed29a599
commit
07a3d0e4b7
1 changed files with 15 additions and 2 deletions
17
.github/workflows/pr-18.yaml
vendored
17
.github/workflows/pr-18.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue