Action by stargazed #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Action by stargazed' | |
# This workflow runs at 00:30 every Sunday | |
on: | |
schedule: | |
- | |
cron: '30 0 * * 0' | |
jobs: | |
build: | |
name: 'stargazed update' | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: 'Use GitHub Actions' | |
uses: actions/checkout@v1 | |
- | |
name: 'Use Node.js 10.x' | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- | |
name: 'Install Package' | |
run: 'npm install --global stargazed' | |
- | |
name: 'Update Repo' | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
run: 'stargazed --username "liuzhenqi77" --token ${GITHUB_TOKEN} --repo "awesome-stars" --message "stargazed update by GitHub Actions Workflow" --sort' |