Skip to content

Commit 9e2507a

Browse files
committed
Remove sanity check from build_index.py
Our GitHub Actions workflow ensures we are on the correct branch when running the script during release, and preventing the script from being used on an arbitrary branch makes testing/debugging harder. Signed-off-by: Joshua Lock <[email protected]>
1 parent ad64b49 commit 9e2507a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

build_index.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,7 @@
164164
</html>
165165
"""
166166

167-
def sanity_check():
168-
branch = None
169-
170-
try:
171-
branch = run("git branch --show-current".split(), capture_output=True).stdout
172-
except Exception:
173-
pass
174-
175-
if branch != b"gh-pages\n":
176-
print(f"build_index.py must be run from the 'gh-pages' branch (on '{branch}'")
177-
sys.exit()
178-
179167
def build_index():
180-
# sanity_check()
181-
182168
html = html_header
183169

184170
html_locations = ['latest', 'draft']

0 commit comments

Comments
 (0)