From 4059268a1080c929ae858d530f4d2caeefcefa0a Mon Sep 17 00:00:00 2001 From: Lai Jia Yang Date: Mon, 20 Apr 2026 01:04:38 +0800 Subject: [PATCH] Fix error handling in repo linter (#4104) --- .github/workflows/repo_linter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/repo_linter.sh b/.github/workflows/repo_linter.sh index d0d58249..abe28865 100755 --- a/.github/workflows/repo_linter.sh +++ b/.github/workflows/repo_linter.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -eo pipefail # Find the repo in the git diff and then set it to an env variables. REPO_TO_LINT=$( @@ -15,7 +16,7 @@ if [ -z "$REPO_TO_LINT" ]; then echo "No new link found in the format: https://....#readme" else echo "Cloning $REPO_TO_LINT" - mkdir cloned + mkdir -p cloned cd cloned git clone "$REPO_TO_LINT" . npx awesome-lint