grassedge / generate-plantuml-action

Generate uml diagrams with Plantuml Server and push them to your repository.
MIT License
107 stars 170 forks source link

Cannot read property 'references' of undefined #2

Closed mfe-dev closed 4 years ago

mfe-dev commented 4 years ago

I've got some issues when running this action on my repo :(

##[error]TypeError: Cannot read property 'references' of undefined
##[error]Node run failed with exit code 1

Here is my yml file :

name: generate plantuml
on: [push]

jobs:
  generate_plantuml:
    runs-on: ubuntu-latest
    name: plantuml
    steps:
    - name: checkout
      uses: actions/checkout@v1
      with:
        fetch-depth: 1
    - name: plantuml
      id: plantuml
      uses: grassedge/generate-plantuml-action@v1.1
      env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
grassedge commented 4 years ago

Thank you for your report. I guess the error is raised by markdown-it, I will investigate the code around calling markdown-it.

grassedge commented 4 years ago

memo:

https://markdown-it.github.io/markdown-it/#MarkdownIt.parse

MarkdownIt.parse(src, env)Array

second parameter is required.