Skip to content

Commit

Permalink
chore(ci): debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Sep 22, 2024
1 parent d62a366 commit efa55d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,22 @@ runs:
- name: Check
shell: bash
run: |
exclusions=
exclusions=''
if [ -z "${{ inputs.exclude }}" ]; then
IFS=',' read -ra EXC <<< "${{ inputs.exclude }}"
for i in "${EXC[@]}"; do
# process "$i"
exclusions="$exclusions -not -path $i"
done
fi
echo "Exclusions: $exclusions"
failures=0
while read -rd $'\0' file; do
if ! ./arkscript --format "$file" --check; then
echo "❌ $(basename $file) is not formatted correctly"
failures=$((failures+1))
fi
done < <(find "${{ inputs.folder }}" $exclusions -type f -name "*.ark" -print0)
done < <(find "${{ inputs.folder }}" -type f -name "*.ark" $exclusions -print0)
echo $failures
[ $failures -gt 0 ] && exit 1 || exit 0

0 comments on commit efa55d3

Please sign in to comment.