Use raw string

This commit is contained in:
jspijker 2023-02-28 13:13:41 +01:00
parent 87ce8a8871
commit f101d0494f

View file

@ -285,7 +285,7 @@ jobs:
if os.path.exists(conan_install_info_path):
with open(conan_install_info_path, "r") as f:
conan_info = json.load(f)
sorted_deps = sorted([dep["recipe"]["id"] for dep in conan_info["installed"]])
sorted_deps = sorted([dep["recipe"]["id"].replace('#', r'\#') for dep in conan_info["installed"]])
summary_env = os.environ["GITHUB_STEP_SUMMARY"]
content = ""
@ -297,7 +297,7 @@ jobs:
f.write(content)
f.writelines("# ${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }} uses:\n")
for dep in sorted_deps:
f.writelines(f"{dep.replace('#', r'\#')}\n")
f.writelines(f"{dep}\n")
- name: Archive the artifacts (bash)
if: ${{ !inputs.installer && runner.os != 'Windows' }}