UNPKG

github-action-readme-generator

Version:

The docs generator for GitHub Actions. Auto-syncs action.yml to README.md with 8 sections: inputs, outputs, usage, badges, branding & more. Works as CLI or GitHub Action.

12 lines (11 loc) 811 B
/** * This TypeScript code exports a function named 'updateSection' which takes a section (ReadmeSection) and an instance of the 'Inputs' class as its parameters. * The function is responsible for updating different sections of the README.md file based on the provided section input. * It utilizes various update functions (e.g., updateBranding, updateBadges) to update specific sections. * @param {ReadmeSection} section - The section of the README to update. * @param {Inputs} inputs - The Inputs class instance. * @returns {Promise<void>} A promise that resolves once the section is updated. */ import type { ReadmeSection } from '../constants.js'; import type Inputs from '../inputs.js'; export default function updateSection(section: ReadmeSection, inputs: Inputs): Promise<Record<string, string>>;