Skip to content

Commit

Permalink
yaml doesn't like you
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgehret committed Dec 17, 2024
1 parent da78074 commit d7efda5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pyproject-copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
jinja_lines.append(line)
content = "".join(jinja_lines)
content = content.replace("{{ version }}", "{{ PLUGIN_VERSION }}")
content = content.replace("{{ version }}", "0.0.dummy")
data = yaml.safe_load(content)
Expand All @@ -140,8 +140,10 @@ jobs:
if dep not in data['requirements']['host']:
data['requirements']['host'].append(dep)
output = yaml.safe_dump(data).replace("0.0.dummy", "{{ PLUGIN_VERSION }}")
with open(recipe_path, "w", encoding="utf-8") as fp:
yaml.safe_dump(data, fp)
fp.write(output)
EOF
- name: 'Install and run copier'
Expand Down

0 comments on commit d7efda5

Please sign in to comment.