fjogeleit / yaml-update-action

Update YAML property with dynamic values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YAMLException: unknown tag

ZsharE opened this issue · comments

Hi,

I get an error when i try to edit my yaml file. That line works fine, it's an extension for MkDocs.

Error: YAMLException: unknown tag !<tag:yaml.org,2002:python/name:pymdownx.emoji.to_svg> (17:5)

markdown_extensions:
    - markdown_fenced_code_tabs:
        template: "bootstrap4"
    - pymdownx.emoji:
        emoji_generator: !!python/name:pymdownx.emoji.to_svg   <---
    - attr_list
    - md_in_html

Hey, thank you for reporting. I will have a look on your exception.

Is it possible for you to set your value in quotes?

markdown_extensions:
    - markdown_fenced_code_tabs:
        template: "bootstrap4"
    - pymdownx.emoji:
        emoji_generator: '!!python/name:pymdownx.emoji.to_svg'
    - attr_list
    - md_in_html

Unfortunately not. If I add !!python/name:pymdownx.emoji.to_svg in quotes or double quotes, it will throw a lot of errors when I try to build the mkdocs static site.

Hm okay, the underlying Library defines Tags with !! and tries to process your type. (https://github.com/nodeca/js-yaml#supported-yaml-types) I can add an custom tag to be able to parse your yaml but it will dump your Tag after processing into quotes. So currently I have no Solution to workaround your Problem. I will ask the maintainer of the lib and let you now if I can solve this issue completly.

How to add reviewers to the PR created by fjogeleit/yaml-update-action@main

can be PR be automerged from GitHub actions

Sorry, don't know.