Skip to content

Commit f62e2b5

Browse files
committed
Install GH CLI on Ubuntu runner
1 parent 2ceef89 commit f62e2b5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/trigger-package-and-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
- name: Checkout Repository
2121
uses: actions/checkout@v6
2222

23+
- name: Install GitHub CLI (Ubuntu)
24+
run: |
25+
sudo curl -fsSLo /usr/share/keyrings/githubcli-archive-keyring.gpg https://cli.github.com/packages/githubcli-archive-keyring.gpg
26+
echo "Types: deb URIs: https://cli.github.com/packages Suites: stable Components: main Architectures: $(dpkg --print-architecture) Signed-By: /usr/share/keyrings/githubcli-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/github-cli.sources > /dev/null
27+
sudo apt update
28+
sudo apt install gh -y
29+
gh --version
30+
2331
- name: Install DNF Config Manager
2432
run: |
2533
sudo dnf -y install 'dnf-command(config-manager)'

0 commit comments

Comments
 (0)