File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 33set -e
44set -o pipefail
55
6+ LINKCHECK_BINARY=mdbook-linkcheck2
7+
68set_github_token () {
79 jq ' .config.output.linkcheck."http-headers"."github\\.com" = ["Authorization: Bearer $GITHUB_TOKEN"]'
810}
911
1012if [ ! -z " $SKIP_LINKCHECK " ] ; then
1113 echo " Skipping link check."
12- exec mdbook-linkcheck -f " "
14+ exec $LINKCHECK_BINARY -f " "
1315fi
1416
1517# https://docs.github.com/en/actions/reference/environment-variables
@@ -37,10 +39,10 @@ else # running locally
3739 echo " Checking files changed in $COMMIT_RANGE : $CHANGED_FILES "
3840fi
3941
40- echo " exec mdbook-linkcheck2 $FLAGS "
42+ echo " exec $LINKCHECK_BINARY $FLAGS "
4143if [ " $USE_TOKEN " = 1 ]; then
4244 config=$( set_github_token)
43- exec mdbook-linkcheck2 $FLAGS <<< " $config"
45+ exec $LINKCHECK_BINARY $FLAGS <<< " $config"
4446else
45- exec mdbook-linkcheck2 $FLAGS
47+ exec $LINKCHECK_BINARY $FLAGS
4648fi
You can’t perform that action at this time.
0 commit comments