├── .github └── workflows │ └── workflow.yml └── README.md /.github/workflows/workflow.yml: -------------------------------------------------------------------------------- 1 | name: 'Update by stargazed' 2 | # This workflow runs at 00:30 everyday 3 | on: 4 | schedule: 5 | - 6 | cron: '30 18 * * *' 7 | jobs: 8 | build: 9 | name: 'stargazed update' 10 | runs-on: ubuntu-latest 11 | steps: 12 | - 13 | name: 'Use GitHub Actions' 14 | uses: actions/checkout@v1 15 | - 16 | name: 'Use Node.js 10.x' 17 | uses: actions/setup-node@v1 18 | with: 19 | node-version: 10.x 20 | - 21 | name: 'Install Package' 22 | run: 'npm install --global stargazed' 23 | - 24 | name: 'Update Repo' 25 | env: 26 | GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' 27 | run: 'stargazed --username "vintagesucks" --token ${GITHUB_TOKEN} --repo "awesome-stars" --message "stargazed update by GitHub Actions Workflow" --sort' 28 | --------------------------------------------------------------------------------