From 060a4e83d5e8e450f446e33f1b7417dd4abc6beb Mon Sep 17 00:00:00 2001 From: Mikhail Epatko Date: Tue, 5 Mar 2024 21:59:24 +0300 Subject: [PATCH] #10 Added markdown-lint --- .github/workflows/main.yml | 3 ++- generate-badge.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9730dbf..9fd9702 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,12 +2,13 @@ on: [push] jobs: - shellcheck: + tests_job: name: Shellcheck runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: ludeeus/action-shellcheck@master + - uses: articulate/actions-markdownlint@v1.1.0 hits_counter_job: name: Generate and deploy HoC-badge diff --git a/generate-badge.sh b/generate-badge.sh index bca3529..4b9e53b 100755 --- a/generate-badge.sh +++ b/generate-badge.sh @@ -9,7 +9,7 @@ Filename=$6 gem install hoc pip install anybadge -mkdir "$OutDir" +mkdir -p "$OutDir" Count=$(hoc -d "$Dir" -e "$Exclude" -s "$Since" -b "$Before" -f "int") echo "Hits of code: $Count"