Skip to content

Update Awesome Stars #26

Update Awesome Stars

Update Awesome Stars #26

Workflow file for this run

name: Update Awesome Stars
on:
workflow_dispatch:
schedule:
- cron: '30 0 * * *'
jobs:
update-awesome-stars:
name: Update Awesome Stars
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
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 language
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
USERNAME: ${{ github.repository_owner }}
run: |
starred --username ${USERNAME} --repository ${REPOSITORY} --sort --token ${GITHUB_TOKEN} --message 'Awesome stars category by language update by GitHub Actions cron'
- name: Update repo category by topic
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
USERNAME: ${{ github.repository_owner }}
run: |
starred --username ${USERNAME} --repository ${REPOSITORY} --sort --token ${GITHUB_TOKEN} --message 'Awesome stars category by topic update by GitHub Actions cron' --topic --topic_limit 500 --filename topics.md