.github/workflows/generate-readme.yml #1986
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
on: | |
schedule: | |
- cron: '0 */24 * * *' # every 24 hours | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Generate README.md | |
uses: teoxoy/profile-readme-stats@master | |
with: | |
token: ${{ secrets.USER_TOKEN }} | |
includeForks: true | |
- name: Update README.md | |
run: | | |
if [[ "$(git status --porcelain)" != "" ]]; then | |
# git config user.name "Vikrant Bhat" | |
# git config user.email [email protected] | |
git config user.name "github-actions[bot]" | |
git config user.email github-actions[bot]@users.noreply.github.com | |
git add . | |
git commit -m "Update README" | |
git push | |
fi | |