Generate an Image Containing All Contributors #149
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
name: Generate an Image Containing All Contributors | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
jobs: | |
generate-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8.14" | |
- name: install libraries | |
run: | | |
pip install requests Pillow numpy | |
- name: generate avatar image grid | |
run: | | |
python ./colossalai/scripts/generate_avatar_grid.py --repo "hpcaitech/ColossalAI" --output ./colossalai/img/contributor_avatar.png | |
- name: Commit changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "[email protected]" | |
git add "*.png" | |
git diff --staged --quiet || git commit -m "Update contributor avatar gallery files." | |
git push |