Skip to content

Commit

Permalink
chore: restore behavior that lists files that need formatting (#32)
Browse files Browse the repository at this point in the history
* restore behavior: list files that need formatting

* tweaks

* Update action.yml

Co-authored-by: Morten Piibeleht <[email protected]>

* Update action.yml

Co-authored-by: Morten Piibeleht <[email protected]>

---------

Co-authored-by: Morten Piibeleht <[email protected]>
  • Loading branch information
zot and mortenpi authored Jul 6, 2024
1 parent 8f25ae6 commit 4e0ff9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,17 @@ runs:
run: |
julia -e '
using JuliaFormatter
format(".") ? exit(0) : exit(1)'
format(".")'
shell: bash
- name: Check for formatting errors
shell: bash
run: |
output=$(git diff --name-only)
if [ "$output" != "" ]; then
>&2 echo "Some files have not been formatted !!!"
echo "$output"
exit 1
fi
- name: 'Suggest'
uses: reviewdog/action-suggester@v1
if: ${{ failure() && (inputs.suggestion-label == '' || contains( github.event.pull_request.labels.*.name, inputs.suggestion-label )) }}
Expand Down

0 comments on commit 4e0ff9c

Please sign in to comment.