← 返回首页
GitHub - jaywcjlove/github-action-folder-tree: View the folder directory tree structure, similar to the output of the tree command · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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
Go to file
Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
View all files

Repository files navigation

More items
Using my app is also a way to support me:

Print Folder Tree

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

Output Project Structure

├── .lintstagedrc ├── LICENSE ├── README.md ├── action.yml ├─> build ├── package-lock.json ├── package.json ├── renovate.json ├─> src │ └── index.ts └── tsconfig.json
- name: Print Folder Tree uses: jaywcjlove/github-action-folder-tree@main id: tree with: exclude: "node_modules|dist|.git|.husky" path: ./src depth: 2 - name: Modify README.md uses: jaywcjlove/github-action-modify-file-content@main with: path: README.md body: ${{ steps.tree.outputs.content }}

Configure dree using JSON

- name: Print Folder Tree uses: jaywcjlove/github-action-folder-tree@main with: config: './docs/dree-config.json'

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
  • config The path to the dree configuration file

Outputs

  • content Directory tree structure text

See Also

License

Licensed under the MIT License.

About

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

Topics

Resources

License

Stars

8 stars

Watchers

1 watching

Forks

Sponsor this project

 
Sponsor

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.