mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
Fix validate-upgrade-path.yml
This commit is contained in:
6
.github/workflows/validate-upgrade-path.yml
vendored
6
.github/workflows/validate-upgrade-path.yml
vendored
@@ -68,7 +68,11 @@ jobs:
|
||||
try:
|
||||
print("Reading upgrade-path.yaml...")
|
||||
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():
|
||||
raise ValueError("File is empty")
|
||||
|
||||
Reference in New Issue
Block a user