Skip to content

Commit

Permalink
Merge pull request #2 from protocol/group
Browse files Browse the repository at this point in the history
group output by directory
  • Loading branch information
marten-seemann authored May 14, 2021
2 parents 344272c + 9ce356a commit 1535f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ runs:
run: |
status=0
for dir in $(find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::'); do
echo "#=#=#=# $dir #=#=#=#"
pushd $dir > /dev/null
echo "::group::$dir"
(
${{ inputs.run }}
)
echo "::endgroup::"
s=$?
if [[ $s != 0 ]]; then status=$s; fi
popd > /dev/null
echo -e "\n\n"
done
exit $status

0 comments on commit 1535f43

Please sign in to comment.