Skip to content

Commit

Permalink
Revert "Hardcoding GH_TOKEN and repo URL into the git ls-remote comma…
Browse files Browse the repository at this point in the history
…nd."

This reverts commit a2915e8.
  • Loading branch information
dmundra committed Sep 2, 2024
1 parent a2915e8 commit 4bb5c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .config/mkdocs/check-material-insiders-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ material_insiders_repo="https://github.com/squidfunk/mkdocs-material-insiders.gi

# Get latest tag from material-insiders git repo.
# Got solution from https://stackoverflow.com/questions/29780641/how-to-clone-latest-tag-in-a-git-repo.
latest_tag=$(git ls-remote --tags --exit-code --refs "https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git" \
latest_tag=$(git ls-remote --tags --exit-code --refs "${material_insiders_repo}" \
| sed -E 's/^[[:xdigit:]]+[[:space:]]+refs\/tags\/(.+)/\1/g' \
| sort --version-sort | tail -n1)

Expand Down

0 comments on commit 4bb5c5e

Please sign in to comment.