44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# 已停用:改由 la_dev_crontab 定时任务调用(params=crawl)
|
||
# 原配置保留供参考,不删除以便回溯
|
||
#
|
||
# name: Truth Social Crawler
|
||
#
|
||
# on:
|
||
# schedule:
|
||
# # 每小时执行一次 (UTC 时间)
|
||
# - cron: '0 * * * *'
|
||
# workflow_dispatch: # 允许手动触发
|
||
#
|
||
# jobs:
|
||
# crawl:
|
||
# runs-on: ubuntu-latest
|
||
# permissions:
|
||
# contents: write
|
||
#
|
||
# steps:
|
||
# - name: Checkout
|
||
# uses: actions/checkout@v4
|
||
#
|
||
# - name: Setup Python
|
||
# uses: actions/setup-python@v5
|
||
# with:
|
||
# python-version: '3.12'
|
||
#
|
||
# - name: Install dependencies
|
||
# run: pip install -r public/truth-social/requirements.txt
|
||
#
|
||
# - name: Run crawler
|
||
# run: python public/truth-social/crawler.py
|
||
#
|
||
# - name: Commit & Push data
|
||
# run: |
|
||
# git config user.name "github-actions[bot]"
|
||
# git config user.email "github-actions[bot]@users.noreply.github.com"
|
||
# git add public/truth-social/data/
|
||
# if git diff --staged --quiet; then
|
||
# echo "No new data to commit"
|
||
# else
|
||
# git commit -m "data: update truth social posts $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||
# git push
|
||
# fi
|