Skip to content

Commit

Permalink
Fix the YML file location
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Feb 8, 2024
1 parent cafdafd commit 21a0ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def build_dataclasses_from_component_yaml(
component_hyphenated: str, version: Optional[str] = None
) -> dict:
branch_or_tag = version or "main"
govuk_frontend_component_yml_url = f"https://raw.githubusercontent.com/alphagov/govuk-frontend/{branch_or_tag}/src/govuk/components/{component_hyphenated}/{component_hyphenated}.yaml"
govuk_frontend_component_yml_url = f"https://raw.githubusercontent.com/alphagov/govuk-frontend/{branch_or_tag}/packages/govuk-frontend/src/govuk/components/{component_hyphenated}/{component_hyphenated}.yaml"
# Grab the YAML file
r = requests.get(govuk_frontend_component_yml_url)
r.raise_for_status()
Expand Down

0 comments on commit 21a0ff5

Please sign in to comment.