From 4bd0b23a08571fe5f88638a7843a73cd9f58ea82 Mon Sep 17 00:00:00 2001 From: Matthew Hansen Date: Mon, 9 Sep 2024 08:31:14 -0700 Subject: [PATCH] Change dir before running build script (issue #52) --- .github/workflows/docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 3bd2f240..1c8abcea 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,8 +19,9 @@ jobs: run: | # find the build.sh scripts and execute them echo "Running all build.sh scripts in repo" + path=$(pwd) for f in $(find . -iname 'build.sh') do - $f || exit 1 + (cd $(dirname $f) && ./build.sh && cd $path) || (echo $f "Failed" && exit 1) done echo "Done running build.sh scripts"