This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a039cc
commit af0ec7c
Showing
1 changed file
with
87 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,31 +82,97 @@ jobs: | |
"[email protected]:My Name" | ||
"[email protected]:Your Name" | ||
"[email protected]:Your Name" | ||
"[email protected]:trinity22" | ||
"[email protected]:Lamusica2131" | ||
"[email protected]:Mathilde2009" | ||
"[email protected]:artie927" | ||
"[email protected]:Vampires95" | ||
"[email protected]:Ljandshiqi60" | ||
"[email protected]:1026sanandres" | ||
"[email protected]:ilm4ksmpggmac" | ||
"[email protected]:Reese1089@" | ||
"[email protected]:Tai71881" | ||
"[email protected]:Alain2romy$" | ||
"[email protected]:Cooper123" | ||
"[email protected]:disc0Shadin" | ||
"[email protected]:NovBell3" | ||
"[email protected]:GTr141091" | ||
"[email protected]:Dt13671367" | ||
"[email protected]:Tbetts111" | ||
"[email protected]:Kubota12" | ||
"[email protected]:Lt311906" | ||
"[email protected]:Dita1968" | ||
"[email protected]:ellaMay20" | ||
"[email protected]:yaswanth7893" | ||
"[email protected]:1love4me" | ||
"[email protected]:mrpmgp85" | ||
"[email protected]:Dalton45" | ||
"[email protected]:memo1985" | ||
"[email protected]:Midlandcapo11" | ||
"[email protected]:Lucyandfraser5" | ||
"[email protected]:Lucas1660" | ||
"[email protected]:west2313" | ||
"[email protected]:mykids08" | ||
"[email protected]:smooth1129" | ||
"[email protected]:gallagher18" | ||
"[email protected]:83138073" | ||
"[email protected]:Xiongaaron123" | ||
"[email protected]:Rb414095" | ||
"[email protected]:bedroom123" | ||
"[email protected]:Zl432018" | ||
"[email protected]:morocco89" | ||
"[email protected]:daegi7672" | ||
"[email protected]:REBELDE89!" | ||
"[email protected]:cedpsrp2125" | ||
"[email protected]:Laciedel143" | ||
"[email protected]:strata21" | ||
"[email protected]:Fofucha10" | ||
"[email protected]:Nexius252" | ||
"[email protected]:Oscar3072003" | ||
"[email protected]:ia04271956" | ||
"[email protected]:jayshawn123" | ||
"[email protected]:tsmn2626" | ||
"[email protected]:Merve1986" | ||
"[email protected]:anoop8285530497" | ||
"[email protected]:michael1234561" | ||
"[email protected]:aa0912105331" | ||
"[email protected]:QwErTy159" | ||
"[email protected]:japari00" | ||
"[email protected]:Crunkgoespunk69" | ||
"[email protected]:Clinton1" | ||
"[email protected]:dragonlady23" | ||
"[email protected]:Manocho08" | ||
"[email protected]:Beraldo21" | ||
"[email protected]:menyali2000" | ||
"[email protected]:goodwind65" | ||
"[email protected]:112515kyo" | ||
"[email protected]:gmatoby16" | ||
"[email protected]:amirmahdi13819" | ||
"[email protected]:sasha27we" | ||
"[email protected]:anne1957" | ||
"[email protected]:kgvb848484" | ||
"[email protected]:2375615F" | ||
"[email protected]:719578Bj" | ||
"[email protected]:Mzright1" | ||
"[email protected]:Pepe2912" | ||
"[email protected]:Samothsnave69" | ||
"[email protected]:trenda88" | ||
"[email protected]:MayMook88" | ||
"[email protected]:smmbacon" | ||
"[email protected]:Alura071991" | ||
"[email protected]:bernal17" | ||
"[email protected]:Muraylo" | ||
"[email protected]:Andresitas" | ||
) | ||
for user in "${users[@]}"; do | ||
email="${user%%:*}" | ||
name="${user##*:}" | ||
echo "Processing user: $name <$email>" | ||
# Set Git user details globally | ||
git config --global user.email "$email" | ||
git config --global user.name "$name" | ||
# Make the changes for the user | ||
log_file="contributors/log_${name// /_}.txt" | ||
echo "Commit at $(date '+%Y-%m-%d %H:%M:%S')" > "$log_file" | ||
# Stage and commit the changes | ||
git add "$log_file" | ||
# Commit if there are changes to commit | ||
if git diff --cached --quiet; then | ||
echo "No changes to commit for $name" | ||
else | ||
git commit -m "Daily update at $(date '+%Y-%m-%d %H:%M:%S')" | ||
git push | ||
echo "Changes pushed for $name" | ||
fi | ||
git add . | ||
git commit -m "Auto-commit for $name" | ||
git push origin main || echo "Pushing changes for $name failed." | ||
done |