grassedge / generate-plantuml-action

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

Error: HttpError: tree.path contains a malformed path component #24

Open nathan815 opened 2 years ago

nathan815 commented 2 years ago

When I add a PlantUML diagram to a markdown file the action throws the following error:

Error: HttpError: tree.path contains a malformed path component

image

Seems to be a GitHub API error. It works perfectly fine for .puml files. Here is my workflow:

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.5
      with:
        message: "Render PlantUML files"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Also tried with path: . set; same error.

The .md file in question:

# Test PlantUML Diagram

Sequence diagram:

` ` `plantuml:test-md-diagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
` ` `

![](./test-md-diagram.svg)

(rendered diagram should appear above)
MarkOSullivan94 commented 2 years ago

Also getting the same issue

ZeroOnet commented 8 months ago

When I add a PlantUML diagram to a markdown file the action throws the following error:

Error: HttpError: tree.path contains a malformed path component

image

Seems to be a GitHub API error. It works perfectly fine for .puml files. Here is my workflow:

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.5
      with:
        message: "Render PlantUML files"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Also tried with path: . set; same error.

The .md file in question:

# Test PlantUML Diagram

Sequence diagram:

` ` `plantuml:test-md-diagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
` ` `

![](./test-md-diagram.svg)

(rendered diagram should appear above)

Empty folder cannot be tracked by git. I add .gitkeep file to path folder and then resolved.