-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👥 adding contributors to readme (#7)
- Loading branch information
Showing
13 changed files
with
1,069 additions
and
41 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Assign the filename | ||
README_TPL="./.ci/templates/README.hbs" | ||
README_TPL_TEMP="./.ci/templates/README.temp.hbs" | ||
|
||
# Create temporary files | ||
CONTRIBUTORS_FILE="./.ci/templates/contributors.temp.md" | ||
cp $README_TPL $README_TPL_TEMP | ||
touch $CONTRIBUTORS_FILE | ||
|
||
# Run contributor update to contributor temp file | ||
npx contributor-table --dirname "$SCRIPT_DIR" --readme $CONTRIBUTORS_FILE | ||
|
||
# Add our emoji back to header | ||
sed -i "" s/"## Contributors"/"## 👥 Contributors"/ $CONTRIBUTORS_FILE | ||
|
||
# Store our files to merge | ||
README_OUTPUT=$(<$README_TPL) | ||
CONTRIBUTOR_OUTPUT=$(<$CONTRIBUTORS_FILE) | ||
|
||
# Merge files replacing pointer in TPL file | ||
echo "${README_OUTPUT//"{{CONTRIBUTORS}}"/$CONTRIBUTOR_OUTPUT}" >$README_TPL_TEMP | ||
|
||
# Clean up contributor temp file | ||
rm $CONTRIBUTORS_FILE | ||
|
||
# Sound of script completed | ||
echo -e "\033[0;32m Contributors Updated \033[0m" |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.