Skip to content

jaywcjlove/github-action-folder-tree

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Print Folder Tree

Buy me a coffee test

View the folder directory tree structure, similar to the output of the tree command

Example Usage

- name: Print Folder Tree
  uses: jaywcjlove/github-action-folder-tree@main
  with:
    exclude: "node_modules|dist|.git|.husky"
    path: ./src
    depth: 2

Inputs

  • path Folder path. (default ./)
  • depth Scan the maximum depth reachable for the given path (default 5)
  • exclude Pass a regex string to exclude directories from printing

Outputs

  • content Directory tree structure text

See Also

License

Licensed under the MIT License.