Skip to content

Commit

Permalink
Merge pull request #3 from rocioar/add-logging
Browse files Browse the repository at this point in the history
Add logging after applying black
  • Loading branch information
rocioar authored May 31, 2020
2 parents e68b04f + 94c947b commit 95776cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ run_black_on_oldest_files() {
done
}

modified_files=`run_black_on_oldest_files`
modified_files=$(run_black_on_oldest_files)

modified_file_names=`echo $modified_files | sed $'s/ /, /g'`
modified_file_names=$(echo $modified_files | sed $'s/ /, /g')
echo "::set-output name=modified_file_names::$modified_file_names"

number_of_modified_files=`echo $modified_files | wc -w`
echo "Applied black to $modified_file_names"

number_of_modified_files=$(echo $modified_files | wc -w)
echo "::set-output name=number_of_modified_files::$number_of_modified_files"

0 comments on commit 95776cf

Please sign in to comment.