Skip to content

Commit 5bbb186

Browse files
authored
Fix. Workflow by Excluding dependabot from contributors list (#126)
1 parent f8b5df4 commit 5bbb186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish_alpha.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
done < <(echo "$COMMIT_LOG" | sed 's/%0A/\n/g' | grep -oP '(?<=~)[^[]*' | sort | uniq -c | sort -rn)
143143
144144
echo "Debug: Fetching contributors from GitHub"
145-
contributors=$(curl -s "https://api.github.com/repos/${{ github.repository }}/contributors")
145+
contributors=$(curl -s "https://api.github.com/repos/${{ github.repository }}/contributors" | jq 'map(select(.login != "dependabot[bot]"))')
146146
echo "Debug: Contributors response:"
147147
echo "$contributors"
148148
@@ -153,7 +153,7 @@ jobs:
153153
echo "$count|$login"
154154
done | sort -rn | cut -d'|' -f2)
155155
156-
developers=""
156+
developers=""
157157
committers_count=0
158158
max_commits=0
159159
top_contributor=""

0 commit comments

Comments
 (0)