mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] Remove hub utility (#8363)
This commit is contained in:
committed by
GitHub
parent
9f764f7429
commit
8cb738bb54
@@ -159,7 +159,6 @@ $cliTools.AddToolVersion("Azure CLI", $(Get-AzureCliVersion))
|
|||||||
$cliTools.AddToolVersion("Azure CLI (azure-devops)", $(Get-AzureDevopsVersion))
|
$cliTools.AddToolVersion("Azure CLI (azure-devops)", $(Get-AzureDevopsVersion))
|
||||||
$cliTools.AddToolVersion("GitHub CLI", $(Get-GitHubCliVersion))
|
$cliTools.AddToolVersion("GitHub CLI", $(Get-GitHubCliVersion))
|
||||||
$cliTools.AddToolVersion("Google Cloud CLI", $(Get-GoogleCloudCLIVersion))
|
$cliTools.AddToolVersion("Google Cloud CLI", $(Get-GoogleCloudCLIVersion))
|
||||||
$cliTools.AddToolVersion("Hub CLI", $(Get-HubCliVersion))
|
|
||||||
$cliTools.AddToolVersion("Netlify CLI", $(Get-NetlifyCliVersion))
|
$cliTools.AddToolVersion("Netlify CLI", $(Get-NetlifyCliVersion))
|
||||||
$cliTools.AddToolVersion("OpenShift CLI", $(Get-OCCliVersion))
|
$cliTools.AddToolVersion("OpenShift CLI", $(Get-OCCliVersion))
|
||||||
$cliTools.AddToolVersion("ORAS CLI", $(Get-ORASCliVersion))
|
$cliTools.AddToolVersion("ORAS CLI", $(Get-ORASCliVersion))
|
||||||
|
|||||||
@@ -234,11 +234,6 @@ function Get-FastlaneVersion {
|
|||||||
return $fastlaneVersion
|
return $fastlaneVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-HubCliVersion {
|
|
||||||
$hubVersion = hub --version | Select-String "hub version" | Take-OutputPart -Part 2
|
|
||||||
return $hubVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
function Get-GitHubCliVersion {
|
function Get-GitHubCliVersion {
|
||||||
$ghVersion = gh --version | Select-String "gh version" | Take-OutputPart -Part 2
|
$ghVersion = gh --version | Select-String "gh version" | Take-OutputPart -Part 2
|
||||||
return $ghVersion
|
return $ghVersion
|
||||||
|
|||||||
@@ -36,14 +36,6 @@ rm /etc/apt/sources.list.d/github_git-lfs.list
|
|||||||
echo "git-core $GIT_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
|
echo "git-core $GIT_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||||
echo "git-lfs $GIT_LFS_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
|
echo "git-lfs $GIT_LFS_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||||
|
|
||||||
#Install hub
|
|
||||||
tmp_hub="/tmp/hub"
|
|
||||||
mkdir -p "$tmp_hub"
|
|
||||||
downloadUrl=$(get_github_package_download_url "github/hub" "contains(\"hub-linux-amd64\")")
|
|
||||||
download_with_retries "$downloadUrl" "$tmp_hub"
|
|
||||||
tar xzf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub"
|
|
||||||
mv "$tmp_hub"/bin/hub /usr/local/bin
|
|
||||||
|
|
||||||
# Add well-known SSH host keys to known_hosts
|
# Add well-known SSH host keys to known_hosts
|
||||||
ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts
|
ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts
|
||||||
ssh-keyscan -t rsa ssh.dev.azure.com >> /etc/ssh/ssh_known_hosts
|
ssh-keyscan -t rsa ssh.dev.azure.com >> /etc/ssh/ssh_known_hosts
|
||||||
|
|||||||
@@ -35,10 +35,6 @@ Describe "GitHub CLI" {
|
|||||||
It "gh cli" {
|
It "gh cli" {
|
||||||
"gh --version" | Should -ReturnZeroExitCode
|
"gh --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "hub is installed" {
|
|
||||||
"hub --version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Google Cloud CLI" {
|
Describe "Google Cloud CLI" {
|
||||||
|
|||||||
@@ -248,10 +248,6 @@ Describe "Git" {
|
|||||||
It "git-ftp" {
|
It "git-ftp" {
|
||||||
"git-ftp --version" | Should -ReturnZeroExitCode
|
"git-ftp --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "hub-cli" {
|
|
||||||
"hub --version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Heroku" {
|
Describe "Heroku" {
|
||||||
|
|||||||
Reference in New Issue
Block a user