fix(ci): update indexers workflow with improved path handling (#1874)

* fix(ci): update indexers workflow with improved path handling
This commit is contained in:
soup 2024-12-12 14:22:42 +01:00 committed by GitHub
parent 81ce8acb2b
commit 66fa645625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 14 deletions

View file

@ -5,9 +5,9 @@ import re
from typing import Dict
# Paths relative to GitHub Actions workspace
DEFINITIONS_DIR = "autobrr/internal/indexer/definitions"
INDEXERS_OUTPUT = "autobrr.com/snippets/indexers.mdx"
FREELEECH_OUTPUT = "autobrr.com/snippets/freeleech.mdx"
DEFINITIONS_DIR = "../autobrr/internal/indexer/definitions"
INDEXERS_OUTPUT = "../autobrr.com/snippets/indexers.mdx"
FREELEECH_OUTPUT = "../autobrr.com/snippets/freeleech.mdx"
def parse_yaml_file(file_path: str) -> Dict:
"""Parse YAML files"""
@ -105,4 +105,4 @@ def main():
f.write(content)
if __name__ == "__main__":
main()
main()