Skip to content

Commit 2205afd

Browse files
authored
Merge pull request #190 from GulSam00/refactor/188-autoTagSongPreFetch
Refactor/188 auto tag song pre fetch
2 parents b5b8b33 + e210066 commit 2205afd

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/tagging_song.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Tagging Songs
22

3-
on:
4-
schedule:
5-
- cron: "0 10 * * *" # 한국 시간 19:00 실행 (UTC+9 → UTC 10:00)
6-
workflow_dispatch:
3+
# on:
4+
# schedule:
5+
# - cron: "0 10 * * *" # 한국 시간 19:00 실행 (UTC+9 → UTC 10:00)
6+
# workflow_dispatch:
77

88
permissions:
99
contents: write # push 권한을 위해 필요

packages/crawling/src/utils/getSongTag.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ export const autoTagSong = async (
7474
- Language Slot (100-199): EXACTLY 1 tag.
7575
- Genre Slot (200-299): EXACTLY 1 tag.
7676
- Origin Slot (300-399): 1 to 2 tags, sorted by relevance.
77+
- **Return the final result strictly in JSON format.**
78+
79+
[Output Instructions]
80+
- **Combine all selected IDs into a single flat array.**
81+
- **The final output must be a JSON object with a single key "tag_ids".**
82+
- **Example: {"tag_ids":}**
83+
- **Do not use keys like "language", "genre", or "origin" in the JSON.**
7784
7885
[Contextual Hints]
7986
${languageHints}

0 commit comments

Comments
 (0)