File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1- # snippet-permalink-updater-action
2- Automates updating Markdown files with permalinks to code snippets
1+ # Snippet Permalink Updater Action
2+
3+ This GitHub Action automatically updates a Markdown file with a permalink to a specific code snippet.
4+
5+ It's useful for keeping documentation up-to-date with the latest version of your code.
6+
7+ ## Features
8+
9+ - Finds a specific snippet in a source file using start and end markers
10+ - Generates a permalink to the snippet, including the latest commit ID
11+ - Updates a specified Markdown file with the new permalink
12+
13+ ## Usage
14+
15+ To use this action in your workflow, add the following step:
16+
17+ ``` yaml
18+ - name : Update Markdown with Snippet Permalink
19+ uses : Robitx/snippet-permalink-updater-action@v1
20+ with :
21+ snippet_file : ' path/to/your/source/file.ext'
22+ start_marker : ' -- START_MARKER'
23+ end_marker : ' -- END_MARKER'
24+ markdown_file : ' README.md'
25+ replace_marker : ' -- REPLACE_MARKER'
You can’t perform that action at this time.
0 commit comments