Skip to content

Commit

Permalink
Updated action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Mar 25, 2021
1 parent 6bc2aae commit 883b98c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: 'Output path to write the badge.'
required: true
default: 'coverage.svg'
overwrite:
description: 'Overwrite existing.'
required: true
default: 'true'

runs:
using: 'docker'
Expand Down
8 changes: 7 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

set -e

coverage-badge -o "${INPUT_OUTPUT}" -q
EXTRA_ARGS=""

if [[ $INPUT_OVERWRITE == 'true' ]]; then
EXTRA_ARGS+='-f'
fi

coverage-badge "$EXTRA_ARGS" -o "${INPUT_OUTPUT}"

0 comments on commit 883b98c

Please sign in to comment.