forked from justtrackio/gosoline
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 865 Bytes
/
update_md.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Update markdown files"
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
update_markdown_documentation:
runs-on: ubuntu-latest
steps:
- name: checkout on the lastest commit
uses: actions/checkout@v3
with:
repository: ''
ref: ''
- name: setup golang
uses: actions/setup-go@v3
with:
stable: 'false'
go-version: '1.18.0'
- name: "running embedmd"
run: |
go install github.com/campoy/embedmd@latest
embedmd -w $(find . | grep "\.md")
- name: "running structmd"
run: |
go install github.com/justtrackio/structmd@latest
structmd $(find . | grep "\.md")
- name: "Ensure embedmd & structmd found no changes"
run: |
git diff --exit-code