mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 10:28:21 +00:00
Fix validate-upgrade-path.yml
This commit is contained in:
@@ -68,7 +68,11 @@ jobs:
|
|||||||
try:
|
try:
|
||||||
print("Reading upgrade-path.yaml...")
|
print("Reading upgrade-path.yaml...")
|
||||||
with open('backend/upgrade-path.yaml', 'r') as file:
|
with open('backend/upgrade-path.yaml', 'r') as file:
|
||||||
content = file.read()
|
raw_lines = file.readlines()
|
||||||
|
|
||||||
|
# Remove comments and empty lines
|
||||||
|
content_lines = [line for line in raw_lines if not line.strip().startswith("#")]
|
||||||
|
content = "".join(content_lines)
|
||||||
|
|
||||||
if not content.strip():
|
if not content.strip():
|
||||||
raise ValueError("File is empty")
|
raise ValueError("File is empty")
|
||||||
|
|||||||
Reference in New Issue
Block a user