GitHub Action linting markdown & its frontmatter content.
This repo has been created with yarn
.
To be able to test the action also install act
.
Further, to publish the action without node_modules
coming in the way,
install ncc.
To ease formatting, prettier
is installed and may be called for testing with:
yarn format
and with
yarn format:fix
to automatically fix formatting.
More info on creating JavaScript GitHub actions may be found on GitHub.
This action prints "Hello World" or "Hello" + the name of a person to greet to the log.
Required The name of the person to greet. Default "World"
.
The time we greeted you.
uses: actions/[email protected]
with:
who-to-greet: "Mona the Octocat"
Adapt this action to one we can use to check the ecosystem projects for:
- project files in a PR not correctly named
{project-name}.md
with.md
ext - missing or misnamed logo files
- logo files in the wrong format (not SVG / PNG / JPG)
- (only for bonus-points: image sizes)
- categories not in the
CATEGORY_MAPPING
- adapt this README file to the functionality of the final action
Find gray-matter
already
installed to work with Markdown & Frontmatter.