mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-06-04 00:02:03 +00:00
Update csv_linter.yml
This commit is contained in:
parent
7cf6e89aa7
commit
652fc08eba
4
.github/workflows/csv_linter.yml
vendored
4
.github/workflows/csv_linter.yml
vendored
@ -37,8 +37,8 @@ jobs:
|
||||
with open("prompts.csv", "r", encoding="utf-8") as f:
|
||||
reader = csv.reader(f)
|
||||
headers = next(reader)
|
||||
if headers != ["act", "prompt"]:
|
||||
print("Error: CSV headers must be exactly [act, prompt]")
|
||||
if headers != ["act", "prompt", "for_devs"]:
|
||||
print("Error: CSV headers must be exactly [act, prompt, for_devs]")
|
||||
exit(1)
|
||||
for row_num, row in enumerate(reader, 2):
|
||||
if len(row) != 2:
|
||||
|
Loading…
x
Reference in New Issue
Block a user