1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 03:54:47 +00:00

gh action env vars

This commit is contained in:
deadc0de6
2024-06-28 20:55:48 +02:00
parent 550fa227f0
commit 36be1abaa7
3 changed files with 13 additions and 13 deletions

20
scripts/check-doc.sh vendored
View File

@@ -12,17 +12,17 @@ find . -type f -iname '*.md' | while read -r line; do
./scripts/check_links.py "${line}"
done
## test the doc internal links
## https://github.com/remarkjs/remark-validate-links
## https://github.com/tcort/markdown-link-check
## npm install -g remark-cli remark-validate-links
if ! which remark >/dev/null 2>&1; then
echo "[WARNING] install \"remark\" to test the doc"
exit 1
fi
in_cicd="${GH_WORKFLOW:-}"
in_cicd="${GITHUB_WORKFLOW:-}"
if [ -n "${in_cicd}" ]; then
## test the doc internal links when in CI/CD
## https://github.com/remarkjs/remark-validate-links
## https://github.com/tcort/markdown-link-check
## npm install -g remark-cli remark-validate-links
if ! which remark >/dev/null 2>&1; then
echo "[WARNING] install \"remark\" to test the doc"
exit 1
fi
echo "------------------------"
echo "checking internal links"
find . -type f -iname '*.md' | while read -r line; do