docs-as-code-confluence icon indicating copy to clipboard operation
docs-as-code-confluence copied to clipboard

Nested folders not considered in markdown images

Open luisalima opened this issue 10 months ago • 0 comments

I have a markdown file that has an image reference like so:

![](./image.svg)

the file and the image are in a nested subfolder projects/sub1/sub2/file.md, projects/sub1/sub2/image.svg

Getting

Error: ENOENT: no such file or directory, open './projects/./image.svg'
Emitted 'error' event on Request instance at:
}

The action is configured as:

      - name: Sync projects folder to confluence
        uses: Bhacaz/docs-as-code-confluence@v2
        with:
          folder: projects
          username: ${{ secrets.CONFLUENCE_USERNAME }}
          password: ${{ secrets.CONFLUENCE_API_TOKEN }}
          confluence-base-url: ${{ secrets.CONFLUENCE_BASE_URL }}
          space-key: ${{ secrets.CONFLUENCE_SPACE_KEY }}
          parent-page-id: 131891301

Thanks in advance!

luisalima avatar Apr 24 '24 14:04 luisalima