Skip to content

A GitHub action to list paths of all files with user specified extension in a repository. Particularly useful for finding similar files in big projects automatically.

License

Notifications You must be signed in to change notification settings

Rishabh510/Path-lister-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path lister action

Path lister

A GitHub action to list path of all files with user specified extension in the folder/directory specified by the user on every push. Particularly useful for finding path of similar files in big projects.

Inputs

Input Description
path(required) Path to find the files
type(required) Type of files to find

Outputs

Output Description
path_count Number of files found with the extension
paths Path of all the files with the extension

Example

name: Path lister example
on: [push]
jobs:
  list:
    name: Path lister
    runs-on: ubuntu-latest
    steps:
      - name: Set up Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: "3.7"

      - uses: actions/checkout@v1

      - name: Fetch action
        id: pl
        uses: Rishabh510/Path-lister-action@master
        with:
          path: ".github/"
          type: ".yml"

      - name: Output results
        run: |
          echo "Found ${{ steps.pl.outputs.path_count }} file(s) with this extension:"
          for i in ${{ steps.pl.outputs.paths }}; do
          echo $i
          done

Output generated for the above yaml file:

example_output

License

MIT license

About

A GitHub action to list paths of all files with user specified extension in a repository. Particularly useful for finding similar files in big projects automatically.

Resources

License

Stars

Watchers

Forks

Packages

No packages published