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

https://github.com/teles/readme-converter-action


https://github.com/teles/readme-converter-action

hacktoberfest hacktoberfest2023

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Readme Converter Action

![Readme Converter Logo](logo.svg "Readme Converter Logo")

This GitHub action reads the content of a `README.md` file from another repository and transforms it into HTML Chrome bookmarks, CSV, and JSON files. It's a useful tool for exporting link and bookmark information from a README file into other formats.

## How to Use

You can use this action in a workflow in your own repository to process the `README.md` file from another repository. Below is an example of how to set up the action in a workflow configuration file `(.github/workflows/main.yml)` in your own repository:

```yaml
on: [push]

jobs:
parse_to_bookmarks:
runs-on: ubuntu-latest
name: Export README to json, csv, and bookmarks
steps:
- uses: teles/readme-converter-action@v0.4.2
with:
input: README.md
output: dist/bookmarks.html
- uses: teles/readme-converter-action@v0.4.2
with:
type: csv
input: README.md
output: dist/links.csv
- uses: teles/readme-converter-action@v0.4.2
with:
type: json
input: README.md
output: dist/links.json
commit_branch: gh-pages
commit_message: Updates JSON file
```

In this example, the action is set up to run when a push occurs in the repository. It reads the content of the `README.md` file and generates HTML, CSV, and JSON files in a directory named `dist`. You can also customize the output type and other options as needed.

### Parameters

* `input`: The README.md file you want to process.
* `output`: The name of the output file generated by the action.
* `type` (optional): The desired output format (HTML, CSV, or JSON).
* `commit_branch` (optional): The branch where you want to commit the `output file` (used when the type is JSON).
* `commit_message` (optional): The commit message used when the action commits the output file.

Make sure to properly configure credentials and permissions to access the repository containing the `README.md` file you want to process.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.