mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-12-20 01:11:34 +08:00
chore: remove autorefresh script
This commit is contained in:
23
.github/workflows/auto-refresh.yml
vendored
23
.github/workflows/auto-refresh.yml
vendored
@@ -1,23 +0,0 @@
|
||||
name: Auto Refresh
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '*/20 0-17,22,23 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
|
||||
- name: Refresh
|
||||
env:
|
||||
JWT_TOKEN: ${{ secrets.JWT_TOKEN }}
|
||||
run: npx tsx ./scripts/refresh.ts
|
||||
@@ -1,5 +0,0 @@
|
||||
import sources from "../shared/sources.json"
|
||||
|
||||
Promise.all(Object.keys(sources).map(id =>
|
||||
fetch(`https://newsnow.busiyi.world/api/s?id=${id}`),
|
||||
)).catch(console.error)
|
||||
Reference in New Issue
Block a user