Skip to content

Commit fdaf5c8

Browse files
authored
docs: add README.md
1 parent 21caafa commit fdaf5c8

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
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'

0 commit comments

Comments
 (0)