Skip to content

Commit

Permalink
ci: fixes emails 2
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Dec 16, 2024
1 parent f00f977 commit 59d0f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
while IFS= read -r line; do
commit_hash=$(echo $line | awk '{print $1}')
email=$(echo $line | awk -F"by: @" '{print (NF>1)? $NF : ""}'| awk '{print $1}')
echo "email is: $email"
echo "Line is: $line"
if [[ "$email" =~ (?:@?)([0-9]*\+)([a-zA-Z0-9_-]+)(@.*)(?:\s?) ]]; then
id="${BASH_REMATCH[1]}"; user="${BASH_REMATCH[2]}"; email="${BASH_REMATCH[3]}"
sed -i "s#$id$user$email#$user#g" "commits.md"
Expand Down

0 comments on commit 59d0f97

Please sign in to comment.