From 1a873d2aec6c26ae8795a026e7bdadb9db232851 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Fri, 25 Aug 2023 08:54:28 +0200 Subject: [PATCH] ci: Remove badges from README.md prior to converting to HTML - Remove thematic break after badges - Remove badges from README.md prior to converting to HTML Signed-off-by: Sergei Petrosian --- .github/workflows/build_docs.yml | 3 +++ .github/workflows/test_converting_readme.yml | 5 ++++- README.md | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 13efaab1..ff45ee62 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -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 '/^\[\!.*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: diff --git a/.github/workflows/test_converting_readme.yml b/.github/workflows/test_converting_readme.yml index e5456137..1e2e5a95 100644 --- a/.github/workflows/test_converting_readme.yml +++ b/.github/workflows/test_converting_readme.yml @@ -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 '/^\[\!.*actions\/workflows/d' README.md + + - name: Convert README.md to HTML uses: docker://pandoc/core:latest with: args: >- diff --git a/README.md b/README.md index ce0ea5fc..9fe02dd2 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ [![ansible-lint.yml](https://github.com/linux-system-roles/logging/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/linux-system-roles/logging/actions/workflows/ansible-lint.yml) [![ansible-test.yml](https://github.com/linux-system-roles/logging/actions/workflows/ansible-test.yml/badge.svg)](https://github.com/linux-system-roles/logging/actions/workflows/ansible-test.yml) [![markdownlint.yml](https://github.com/linux-system-roles/logging/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/linux-system-roles/logging/actions/workflows/markdownlint.yml) [![woke.yml](https://github.com/linux-system-roles/logging/actions/workflows/woke.yml/badge.svg)](https://github.com/linux-system-roles/logging/actions/workflows/woke.yml) ---- - ## Background Logging role is an abstract layer for provisioning and configuring the logging system. Currently, rsyslog is the only supported provider.