jianshutoblog #433
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: jianshutoblog | |
on: | |
watch: | |
types: started | |
push: | |
schedule: | |
- cron: '0 21 */3 * *' | |
jobs: | |
commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout actions | |
uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: spider | |
run: | | |
pip3 install requests | |
python3 getInfoFromJianshuApi.py | |
- name: commit | |
run: | | |
git config --global user.email jackyu0915@gmail.com | |
git config --global user.name JackietYu | |
git add . | |
git commit -m "Everyday update" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |