Skip to content

Commit

Permalink
add Manual
Browse files Browse the repository at this point in the history
  • Loading branch information
youyou-sudo committed Sep 10, 2024
1 parent 053886e commit 57d2e6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/vndb-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Process VNDB Data

on:
schedule:
- cron: '0 */6 * * *' # 每6小时触发一次
- cron: "0 */6 * * *" # 每6小时触发一次
workflow_dispatch: # 手动触发

permissions:
contents: write
Expand Down Expand Up @@ -43,7 +44,7 @@ jobs:
FILE_PATH="vn_data.json"
FILE_NAME="vndb-data-Latest.json"
REPO="youyou-sudo/vndb-search-datas"
# Get the release ID
RELEASE_ID=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$REPO/releases/tags/$RELEASE_TAG" | jq -r '.id')
Expand All @@ -65,5 +66,5 @@ jobs:
-H "Content-Type: application/zip" \
--data-binary @"$FILE_PATH" \
"https://uploads.github.com/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILE_NAME")
echo "Response: $RESPONSE"

0 comments on commit 57d2e6a

Please sign in to comment.