Skip to content

Update Contributors #58

Update Contributors

Update Contributors #58

name: Update Contributors
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-contributors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Update contributors
env:
GITHUB_TOKEN: ${{ secrets.NURU_TOKEN }}
run: python .github/scripts/update_contributors.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/src/index.md docs/src/en/index.md
git commit -m "Update contributors" || exit 0
git push