Skip to content

Commit

Permalink
Update check-material-insiders-version.sh to match mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmundra authored Sep 1, 2024
1 parent 2ef02e0 commit 1e6c652
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .config/mkdocs/check-material-insiders-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ if [ -z "${GH_TOKEN:-}" ]; then
echo "Github token for material-insiders access needed. Ask in #docs channel for access." 1>&2
exit 1
fi
if ! gh --version &> /dev/null; then
echo "Github CLI is required: https://cli.github.com/" 1>&2
exit 2
fi
if ! poetry --version &> /dev/null; then
echo "Poetry is required: https://python-poetry.org/" 1>&2
exit 3
fi

# Register gh as a git credential helper, so we can use GH_TOKEN securely.
gh auth setup-git

material_insiders_repo="https://github.com/squidfunk/mkdocs-material-insiders.git"

Expand Down

0 comments on commit 1e6c652

Please sign in to comment.