Skip to content

Commit 589bf4a

Browse files
committed
Problem: installing gitdown in ~/bin does not work on GH Actions
Solution: install in the working directory
1 parent 3adf641 commit 589bf4a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: builds/check_readme/ci_build.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ rm -rf tmp-deps
3131
mkdir tmp-deps
3232

3333
echo "=== Install gitdown"
34-
mkdir -p ~/bin
3534
( cd tmp-deps && git clone https://github.com/zeromq/gitdown.git gitdown ) \
36-
&& ( cd tmp-deps/gitdown && ./install-wrapper ~/bin ) || exit $?
37-
PATH="$PATH:~/bin"
38-
export PATH
35+
&& ( cd tmp-deps/gitdown && ./install-wrapper "${REPO_DIR}" ) || exit $?
3936
command -v gitdown >/dev/null 2>&1
4037

4138
echo "=== Configure zproject to get a Makefile"
@@ -48,6 +45,7 @@ $CI_TIME ./configure --prefix="${BUILD_PREFIX}" || exit $?
4845
echo "=== Make sure zproject markdown docs are up to date"
4946
touch *.txt *.xml
5047
make README.md
48+
rm -f "${REPO_DIR}/gitdown"
5149
if [[ $(git --no-pager diff -w) ]]; then
5250
git --no-pager diff -w
5351
echo "=== FAIL: There are diffs between current README.md and the one generated by gitdown!"

0 commit comments

Comments
 (0)