This repository was archived by the owner on May 4, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 - name : Run gomarklint Action
1515 uses : ./
1616 with :
17- args : |
18- --config
19- testdata/.gomarklint.json
20- testdata/markdown_files
17+ args : testdata
File renamed without changes.
Original file line number Diff line number Diff line change 11# gomarklint-action
22
33Lint Markdown files using [ gomarklint] ( https://github.com/shinagawa-web/gomarklint ) in GitHub Actions.
4+ ## 🚀 Prerequisites
5+
6+ Before using this action, please generate a ` .gomarklint.json ` config file with:
7+
8+ ``` bash
9+ gomarklint init
10+ ```
11+
12+ This config file is required. If it is missing, the action will fail.
13+
14+ See the [ gomarklint documentation] ( https://github.com/shinagawa-web/gomarklint/blob/main/README.md ) for details.
415
516## Usage
617
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e
33
4- if [ -f " .gomarklint.json" ]; then
5- echo " ✅ Found .gomarklint.json"
4+ CONFIG_FILE=" .gomarklint.json"
5+
6+ if [ -f " $CONFIG_FILE " ]; then
7+ echo " ✅ Found $CONFIG_FILE "
68else
7- echo " ⚠️ .gomarklint.json not found. Proceeding with default config."
9+ echo " ❌ $CONFIG_FILE not found. This action requires a config file."
10+ exit 1
811fi
912
1013exec gomarklint " $@ "
You can’t perform that action at this time.
0 commit comments