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:
Sergei Petrosian 2023-08-28 12:16:58 +02:00 committed by GitHub
parent cd7eafe009
commit 44e5983185
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -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:

View file

@ -34,5 +34,5 @@ jobs:
with:
args: >-
--ignore=CHANGELOG.md
**/*.md
**/*.md
config: .markdownlint.yaml

View file

@ -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: >-