Skip to content

Generate Starred Repositories #1030

Generate Starred Repositories

Generate Starred Repositories #1030

name: Generate Starred Repositories
on:
schedule:
- cron: 30 0 * * *
workflow_dispatch:
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install starred
- name: run stars
run: starred --username ryanfortner --token ${{ secrets.GH_TOKEN }} --sort > README.md
- name: push changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
bash -c "git add . && git commit -m 'Update stars'" || true
git push origin master