Skip to content

Commit a3a9e89

Browse files
Get the branch name from env to sync rpc docs
1 parent cfe8ada commit a3a9e89

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/scripts/sync-rpc-cmds.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
import re
55
from enum import Enum
66

7-
# readme url
8-
BRANCH = "stable"
7+
# ReadMe version - use README_VERSION env var if set, otherwise default to "stable"
8+
BRANCH = os.environ.get("README_VERSION", "stable")
9+
print(f"📋 Using ReadMe version/branch: '{BRANCH}'")
910
URL = f"https://api.readme.com/v2/branches/{BRANCH}"
1011
CATEGORY_SLUG = "JSON-RPC"
1112
NOTIFICATIONS_CATEGORY_SLUG = "Notifications"

0 commit comments

Comments
 (0)