From b1e617ff37c80426e5f822ac58019ec94fee892a Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 15 May 2026 17:17:09 +0900 Subject: [PATCH] fix(ci): ensure bash trap cleanup does not return a non-zero exit code which fails the overall github action job --- scripts/run_adminfront_ci_tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/run_adminfront_ci_tests.sh b/scripts/run_adminfront_ci_tests.sh index e26dc42c..e6e46101 100755 --- a/scripts/run_adminfront_ci_tests.sh +++ b/scripts/run_adminfront_ci_tests.sh @@ -7,11 +7,12 @@ tmp_dir="" cleanup() { if [ -n "${tmp_dir:-}" ] && [ -d "$tmp_dir" ]; then - rm -rf "$tmp_dir" + rm -rf "$tmp_dir" || true fi } -trap cleanup EXIT INT TERM +trap "cleanup; exit" INT TERM +trap cleanup EXIT mkdir -p reports rm -rf adminfront/node_modules