mirror of
https://github.com/langgenius/dify-marketplace-toolkit.git
synced 2026-07-01 19:54:03 -04:00
15 lines
311 B
Python
15 lines
311 B
Python
import os
|
|
import json
|
|
import sys
|
|
|
|
files: list[str] = json.loads(os.environ['PR_FILES'])
|
|
|
|
if len(files) != 1:
|
|
print("only one file change allowed in a single PR.")
|
|
sys.exit(1)
|
|
|
|
if not files[0]['path'].endswith(".difypkg"):
|
|
print("only .difypkg file allowed.")
|
|
sys.exit(1)
|
|
|
|
print(files[0]['path']) |