diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7179cbe..d09a7cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,13 +24,16 @@ jobs: - name: Install git-kb from source env: + GH_TOKEN: ${{ github.token }} RUSTC_WRAPPER: sccache run: | INSTALL_DIR="${RUNNER_TEMP}/gitkb-bin" SRC="${RUNNER_TEMP}/gitkb-src" mkdir -p "$INSTALL_DIR" "$SRC/vendor" - git clone --depth 1 https://github.com/gitkb/gitkb-core.git "$SRC/gitkb-core" - git clone --depth 1 https://github.com/gitkb/tree-sitter-markdown.git "$SRC/vendor/tree-sitter-markdown" + git -c "http.https://github.com/.extraheader=AUTHORIZATION: bearer ${GH_TOKEN}" \ + clone --depth 1 https://github.com/gitkb/gitkb-core.git "$SRC/gitkb-core" + git -c "http.https://github.com/.extraheader=AUTHORIZATION: bearer ${GH_TOKEN}" \ + clone --depth 1 https://github.com/gitkb/tree-sitter-markdown.git "$SRC/vendor/tree-sitter-markdown" cargo install --path "$SRC/gitkb-core/crates/gitkb-cli" --root "$INSTALL_DIR" rm -rf "$SRC" echo "$INSTALL_DIR/bin" >> "$GITHUB_PATH"