Skip to content

AI-powered GitHub Action #911

@ROHANDWIVEDI2005

Description

@ROHANDWIVEDI2005

Description of the feature request:

This is a proposal to add a new cookbook example: an AI-powered GitHub Action that converts plain text into well-structured Markdown documentation.

What problem are you trying to solve with this feature?

Many developers need to create clear documentation (like README.md files) but find manual formatting tedious. This tool automates the process by leveraging the Gemini API to intelligently structure the text, saving time and ensuring consistency.

The workflow is triggered by a push to a source text file (e.g., source.txt). It then:

  1. Reads the content of the text file.
  2. Calls the Gemini API to generate a Markdown version of the text.
  3. Automatically commits the new Markdown content to a destination file (e.g., README.md).

This makes the documentation process a simple "write and push" action.

The complete and working code for this example is available in my public repository:

https://github.com/ROHANDWIVEDI2005/Convert_to_md

Image

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions