CHdo commited on
Commit
b1c1d35
·
verified ·
1 Parent(s): 2e7af23

Delete .github

Browse files
Files changed (1) hide show
  1. .github/workflows/hf-keepalive.yml +0 -25
.github/workflows/hf-keepalive.yml DELETED
@@ -1,25 +0,0 @@
1
- # 定时访问 HF Space,减轻免费版休眠(无法保证 24/7,但能明显缩短离线时间)
2
- # 在 GitHub 仓库 Settings → Secrets → Actions 添加:HF_SPACE_URL
3
- # 例如:https://你的用户名-空间名.hf.space
4
-
5
- name: HF Space keepalive
6
-
7
- on:
8
- schedule:
9
- # 每 5 分钟一次(GitHub 免费 Actions 可能有数分钟延迟)
10
- - cron: "*/5 * * * *"
11
- workflow_dispatch:
12
-
13
- jobs:
14
- ping:
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: Ping Space
18
- run: |
19
- if [ -z "${{ secrets.HF_SPACE_URL }}" ]; then
20
- echo "Skip: set repository secret HF_SPACE_URL (your Space app URL)"
21
- exit 0
22
- fi
23
- curl -fsS -m 60 -o /dev/null -w "HTTP %{http_code}\n" "${{ secrets.HF_SPACE_URL }}" \
24
- || curl -fsS -m 60 -o /dev/null -w "HTTP %{http_code} (retry)\n" "${{ secrets.HF_SPACE_URL }}/" \
25
- || echo "Ping failed (Space may be building or sleeping)"