Skip to content

5min定时抓取 #34570

5min定时抓取

5min定时抓取 #34570

Workflow file for this run

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