mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-28 21:40:43 +00:00
ci: Remove badges from README.md prior to converting to HTML (#633)
- Remove thematic break after badges - Remove badges from README.md prior to converting to HTML Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
This commit is contained in:
parent
cd7eafe009
commit
44e5983185
4 changed files with 8 additions and 4 deletions
3
.github/workflows/build_docs.yml
vendored
3
.github/workflows/build_docs.yml
vendored
|
|
@ -75,6 +75,9 @@ jobs:
|
|||
- name: Ensure that version and docs directories exist
|
||||
run: mkdir -p ${{ env.RELEASE_VERSION }} docs
|
||||
|
||||
- name: Remove badges from README.md prior to converting to HTML
|
||||
run: sed -i '1,8 {/^\[\!.*actions\/workflows/d}' ref_branch/README.md
|
||||
|
||||
- name: Convert README.md to HTML and save to the version directory
|
||||
uses: docker://pandoc/core:latest
|
||||
with:
|
||||
|
|
|
|||
2
.github/workflows/markdownlint.yml
vendored
2
.github/workflows/markdownlint.yml
vendored
|
|
@ -34,5 +34,5 @@ jobs:
|
|||
with:
|
||||
args: >-
|
||||
--ignore=CHANGELOG.md
|
||||
**/*.md
|
||||
**/*.md
|
||||
config: .markdownlint.yaml
|
||||
|
|
|
|||
5
.github/workflows/test_converting_readme.yml
vendored
5
.github/workflows/test_converting_readme.yml
vendored
|
|
@ -28,7 +28,10 @@ jobs:
|
|||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Convert README.md to HTML and save to the version directory
|
||||
- name: Remove badges from README.md prior to converting to HTML
|
||||
run: sed -i '1,8 {/^\[\!.*actions\/workflows/d}' README.md
|
||||
|
||||
- name: Convert README.md to HTML
|
||||
uses: docker://pandoc/core:latest
|
||||
with:
|
||||
args: >-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue