mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 23:41:03 +00:00
fix: new line trailing for extra info
This commit is contained in:
17
.github/workflows/beta.yml
vendored
17
.github/workflows/beta.yml
vendored
@@ -105,8 +105,8 @@ jobs:
|
||||
}
|
||||
# Additional information for the goats
|
||||
declare -A additional_info
|
||||
additional_info["ibo"]="\n- Discord: <@951737931159187457>\n- AniList: [takarealist112](https://anilist.co/user/takarealist112/)"
|
||||
additional_info["aayush262"]="\n- Discord: <@918825160654598224>"
|
||||
additional_info["ibo"]="- Discord: <@951737931159187457>\n- AniList: [takarealist112](https://anilist.co/user/takarealist112/)"
|
||||
additional_info["aayush262"]="- Discord: <@918825160654598224>"
|
||||
# Extract contributor names from commit log and make unique list
|
||||
committers=$(echo "$COMMIT_LOG" | sed 's/%0A/\n/g' | grep -oP '(?<=~)[^%]*')
|
||||
committers=$(echo "$committers" | sort | uniq)
|
||||
@@ -125,17 +125,18 @@ jobs:
|
||||
avatar_url=$(echo "$user_info" | cut -d'|' -f3)
|
||||
if echo "$committers" | grep -qw "$name"; then
|
||||
extra_info="${additional_info[$name]}"
|
||||
if [ -n "$extra_info" ]; then
|
||||
extra_info=$(echo -e "$extra_info" | sed 's/^/- /')
|
||||
fi
|
||||
developers="${developers}◗ **${name}**
|
||||
${extra_info}
|
||||
- Github: [${login}](https://github.com/${login})
|
||||
- Commits: ${commits}
|
||||
"
|
||||
${extra_info}
|
||||
- Github: [${login}](https://github.com/${login})
|
||||
- Commits: ${commits}
|
||||
"
|
||||
committers_count=$((committers_count + 1))
|
||||
# Set thumbnail_url to the committer's avatar if only one committer
|
||||
if [ $committers_count -eq 1 ]; then
|
||||
thumbnail_url="$avatar_url"
|
||||
else
|
||||
# Use default thumbnail if more than one committer
|
||||
thumbnail_url="https://i.imgur.com/5o3Y9Jb.gif"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user