From f16f2b5558516d36eed7e6cb6e40c084687366e5 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 16 Dec 2021 04:08:59 -0600 Subject: [PATCH 1/2] fix: Update install.sh to use "coder" GitHub organization --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 853aa8ac58cc..b53720f23fd2 100755 --- a/install.sh +++ b/install.sh @@ -75,12 +75,12 @@ EOF echo_latest_version() { if [ "${EDGE-}" ]; then - version="$(curl -fsSL https://api.github.com/repos/cdr/code-server/releases | awk 'match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F '"' '{print $4}')" + version="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases | awk 'match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F '"' '{print $4}')" else # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860 - version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/cdr/code-server/releases/latest)" + version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/coder/code-server/releases/latest)" fi - version="${version#https://github.com/cdr/code-server/releases/tag/}" + version="${version#https://github.com/coder/code-server/releases/tag/}" version="${version#v}" echo "$version" } @@ -351,7 +351,7 @@ install_deb() { echoh "Installing v$VERSION of the $ARCH deb package from GitHub." echoh - fetch "https://github.com/cdr/code-server/releases/download/v$VERSION/code-server_${VERSION}_$ARCH.deb" \ + fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_$ARCH.deb" \ "$CACHE_DIR/code-server_${VERSION}_$ARCH.deb" sudo_sh_c dpkg -i "$CACHE_DIR/code-server_${VERSION}_$ARCH.deb" @@ -362,7 +362,7 @@ install_rpm() { echoh "Installing v$VERSION of the $ARCH rpm package from GitHub." echoh - fetch "https://github.com/cdr/code-server/releases/download/v$VERSION/code-server-$VERSION-$ARCH.rpm" \ + fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-$ARCH.rpm" \ "$CACHE_DIR/code-server-$VERSION-$ARCH.rpm" sudo_sh_c rpm -i "$CACHE_DIR/code-server-$VERSION-$ARCH.rpm" @@ -388,7 +388,7 @@ install_standalone() { echoh "Installing v$VERSION of the $ARCH release from GitHub." echoh - fetch "https://github.com/cdr/code-server/releases/download/v$VERSION/code-server-$VERSION-$OS-$ARCH.tar.gz" \ + fetch "https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-$OS-$ARCH.tar.gz" \ "$CACHE_DIR/code-server-$VERSION-$OS-$ARCH.tar.gz" # -w only works if the directory exists so try creating it first. If this From d5bea98184a0d7e94a5e2cee1d8910997d7c20d9 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 16 Dec 2021 04:11:19 -0600 Subject: [PATCH 2/2] Update docs preview --- .github/workflows/docs-preview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-preview.yaml b/.github/workflows/docs-preview.yaml index 476f6e41a842..2d9df9352e65 100644 --- a/.github/workflows/docs-preview.yaml +++ b/.github/workflows/docs-preview.yaml @@ -28,7 +28,7 @@ jobs: - name: Checkout m uses: actions/checkout@v2 with: - repository: cdr/m + repository: coder/m ref: refs/heads/master token: ${{ secrets.GH_ACCESS_TOKEN }} submodules: true