Skip to content

Merge pull request #33 from PoulavBhowmick03/main #4

Merge pull request #33 from PoulavBhowmick03/main

Merge pull request #33 from PoulavBhowmick03/main #4

Workflow file for this run

name: Update Contributors
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
jobs:
update-contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Fetch contributors and update README
run: |
pip install requests
python update_readme.py
env:
TOKEN_GH: ${{ secrets.TOKEN_GH }}
- name: Commit and push changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add README.md
git commit -m "Update contributors"
git push
env:
TOKEN_GH: ${{ secrets.TOKEN_GH }}