diff --git a/.github/workflows/schedules.yml b/.github/workflows/schedules.yml new file mode 100644 index 0000000..2e4ef53 --- /dev/null +++ b/.github/workflows/schedules.yml @@ -0,0 +1,23 @@ +name: update awesome-stars +on: + workflow_dispatch: + schedule: + - cron: 30 0 * * * +jobs: + awesome-stars: + name: update awesome-stars + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - 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: update repo + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: starred --username wangxufire --repository awesome-stars --sort --token ${GITHUB_TOKEN} --message 'stars update by github actions cron'