Files
runner-images/images/linux/scripts/installers/github-cli.sh
Dibir Magomedsaygitov 875891b86b [Ubuntu] Migrate missing tools tests to Pester (#2374)
* add missing tests

* fix naming and nvm test

* fix containers test and bring pwsh test back

* remove pwsh test

* small fix
2020-12-31 10:00:43 +03:00

15 lines
596 B
Bash

#!/bin/bash -e
################################################################################
## File: github-cli.sh
## Desc: Installs GitHub CLI
## Must be run as non-root user after homebrew
################################################################################
# Install GitHub CLI
url=$(curl -s https://api.github.com/repos/cli/cli/releases/latest | jq -r '.assets[].browser_download_url|select(contains("linux") and contains("amd64") and contains(".deb"))')
wget $url
apt install ./gh_*_linux_amd64.deb
rm gh_*_linux_amd64.deb
invoke_tests "CLI.Tools" "GitHub CLI"