Skip to content

Commit

Permalink
#3 Fixed output dir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Epatko committed Mar 5, 2024
1 parent f8ef8f6 commit 63df15b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Expand Up @@ -34,11 +34,7 @@ runs:
with:
ruby-version: '3.3.0'
- name: Generate badge
run: |
gem install hoc
pip install anybadge
mkdir $OUTPUT_DIR
$GITHUB_ACTION_PATH/generate-badge.sh $BEFORE $DIR $EXCLUDE $SINCE $OUTPUT_DIR $FILENAME
run: $GITHUB_ACTION_PATH/generate-badge.sh $BEFORE $DIR $EXCLUDE $SINCE $OUTPUT_DIR $FILENAME
shell: bash
env:
BEFORE: ${{ inputs.before }}
Expand Down
4 changes: 4 additions & 0 deletions generate-badge.sh
Expand Up @@ -7,6 +7,10 @@ Since=$4
OutDir=$5
Filename=$6

gem install hoc
pip install anybadge
mkdir "$OutDir"

Count=$(hoc -d "$Dir" -e "$Exclude" -s "$Since" -b "$Before" -f "int")
echo "Hits of code: $Count"

Expand Down

0 comments on commit 63df15b

Please sign in to comment.