From be8cb132d257e9e5aa7c1374c309c5f5af979817 Mon Sep 17 00:00:00 2001 From: Tyler Chong Date: Sat, 24 Feb 2024 18:34:55 -1000 Subject: [PATCH] fixes --- .github/workflows/contributors.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 22fca02..aa1edfb 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -66,10 +66,11 @@ jobs: if ! jq -e . >/dev/null 2>&1 <<< "$(cat $repository-contributors.json)"; then echo "No contributors for $repository" + rm $repository-contributors.json continue fi - echo $repository-contributors.json | jq -r '.contributors[] | {username: .login, avatar_url: .avatar_url, url: .profile }' | jq -s . > $repository-contributors.json + cat $repository-contributors.json | jq -r '.contributors[] | {username: .login, avatar_url: .avatar_url, url: .profile }' | jq -s . > $repository-contributors.json if [ -s $repository-contributors.json ]; then echo "Contributors found for $repository" cat $repository-contributors.json