Commit 4059268a10

4059268a1080c929ae858d530f4d2caeefcefa0a

parent: 893fc57bdc

Unregistered key

Lai Jia Yang <lo3mju@gmail.com> · 2026-04-19 17:04 UTC
committer: <noreply@github.com>

Fix error handling in repo linter (#4104)

Layout: unified · split

.github/workflows/repo_linter.sh +2 −1
@@ -1,4 +1,5 @@
1#!/bin/bash 1#!/bin/bash
2set -eo pipefail
2 3
3# Find the repo in the git diff and then set it to an env variables. 4# Find the repo in the git diff and then set it to an env variables.
4REPO_TO_LINT=$( 5REPO_TO_LINT=$(
@@ -15,7 +16,7 @@ if [ -z "$REPO_TO_LINT" ]; then
15 echo "No new link found in the format: https://....#readme" 16 echo "No new link found in the format: https://....#readme"
16else 17else
17 echo "Cloning $REPO_TO_LINT" 18 echo "Cloning $REPO_TO_LINT"
18 mkdir cloned 19 mkdir -p cloned
19 cd cloned 20 cd cloned
20 git clone "$REPO_TO_LINT" . 21 git clone "$REPO_TO_LINT" .
21 npx awesome-lint 22 npx awesome-lint