Contributor Helper #12
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: Contributor Helper | |
on: | |
# 🌏 Think about the planet! No need to update stats too frequently | |
schedule: [{ cron: '0 18 * * *' }] | |
# 💡 The following line lets you run workflow manually from the action tab! | |
workflow_dispatch: | |
jobs: | |
contributor: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-cool/contributor-helper@v1 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
style: 'simple' | |
update-files: 'README.md' | |
update-places: '<!-- CONTRIBUTION GROUP -->/<!-- CONTRIBUTION END -->' | |
- name: Commit and push if changed | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "github-actions" | |
git pull | |
git add -A | |
git commit -m "🤖 docs: Auto update contributors" || exit 0 | |
git push |