Skip to content

update awesome-stars #1094

update awesome-stars

update awesome-stars #1094

Workflow file for this run

name: update awesome-stars
on:
workflow_dispatch:
schedule:
- cron: 30 0 * * *
jobs:
update-stars-topics:
name: update awesome-stars
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install starred
- name: get repository name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: update repo category by topic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
USERNAME: ${{ github.repository_owner }}
run: starred --username ${USERNAME} --repository ${REPOSITORY} --token ${GITHUB_TOKEN} --sort --topic --topic_limit 500 --message 'stars update by github actions cron'