5min定时抓取 #34565
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: 5min定时抓取 | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: run start.sh | |
run: | | |
pip install pandas | |
bash ./start.sh | |
- name: Set timestamp | |
id: timestamp | |
run: echo "::set-output name=timestamp::$(date +'%Y-%m-%d %H:%M')" | |
- name: Git add and commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "crawer actioner" | |
git add . | |
git commit -m "craw_5minly_${{ steps.timestamp.outputs.timestamp }}" | |
- name: GitHub Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.REPO_TOKEN }} | |
branch: master |