Skip to content

.github/workflows/generate-readme.yml #2072

.github/workflows/generate-readme.yml

.github/workflows/generate-readme.yml #2072

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