Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rune/indexer-github-action

Github action to automatically dump an index.json in every folder of a repository that lists all files inside it
https://github.com/rune/indexer-github-action

Last synced: about 1 month ago
JSON representation

Github action to automatically dump an index.json in every folder of a repository that lists all files inside it

Awesome Lists containing this project

README

        

# indexer-github-action

Github action to automatically dump an index.json in every folder of a repository that lists all files inside it.

- Also adds "tags" to every file in the index by extracting information in the filename.
- Tags must be supplied in the filename using the following format: `.key-value.`
- For example, if there's a file called `landingImage.language-en.png`, it will be parsed as follows:

```json
{
"name": "landingImage.language-en.png",
"type": "file",
"tags": { "language": "en" }
}
```

### References

- [Write github actions using NodeJS](https://datree.io/github-actions/)