Skip to content

Commit

Permalink
Update partner-contributed-documentation.yml
Browse files Browse the repository at this point in the history
Updated to correct team cc mention
  • Loading branch information
cmwilson21 authored Jul 6, 2023
1 parent d0bfd09 commit d62869b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ body:
attributes:
value: |
Once all tasks are completed, please mention `@github/docs-content` for next steps.
/cc @github/partner-engineering for :eyes:.
/cc @github/technology-partnerships-and-engineering for :eyes:.

This comment was marked as spam.

Copy link
@suna1992

suna1992 Oct 30, 2023

#!/usr/bin/env bash
#-------------------------------------------------------------------------------------------------------------

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.

#-------------------------------------------------------------------------------------------------------------

Docs: https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/docs/github.md

Syntax: ./github-debian.sh [version]

CLI_VERSION=${1:-"latest"}

set -e

if [ "$(id -u)" -ne 0 ]; then
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
exit 1
fi

export DEBIAN_FRONTEND=noninteractive

Install curl, apt-transport-https or gpg if missing

if ! dpkg -s curl ca-certificates > /dev/null 2>&1; then
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
apt-get update
fi
apt-get -y install --no-install-recommends curl ca-certificates
fi

Get latest release number if latest is specified

if [ "${CLI_VERSION}" = "latest" ] || [ "${CLI_VERSION}" = "current" ] || [ "${CLI_VERSION}" = "lts" ]; then
LATEST_RELEASE=$(curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/cli/cli/releases?per_page=1&page=1")
CLI_VERSION=$(echo ${LATEST_RELEASE} | grep -oE 'tag_name":\s*"v[^"]+' | sed -n '/tag_name":\s*"v/s///p')
fi

Install the GitHub CLI

echo "Downloading github CLI..."
curl -OsSL https://github.com/cli/cli/releases/download/v${CLI_VERSION}/gh_${CLI_VERSION}_linux_amd64.deb
echo "Installing github CLI..."
apt-get install ./gh_${CLI_VERSION}linux_amd64.deb
echo "Removing github CLI deb file after installation..."
rm -rf ./gh
${CLI_VERSION}_linux_amd64.deb
echo "Done!"

This comment was marked as spam.

Copy link
@suna1992

suna1992 Oct 30, 2023

background-color: white;
color: #d2d2d2;
font-family: Helvetica,arial,sans-serif;
font-size: 100%;
width: 100%;
min-height: 100%;
margin: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;

2 comments on commit d62869b

@suna1992

This comment was marked as spam.

@AbuSanadAlDulaim

This comment was marked as spam.

Please sign in to comment.