Skip to content

Commit

Permalink
fix bash script to check each file
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Feb 19, 2024
1 parent c8bb7c0 commit 77f75e2
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,17 @@ jobs:
- name: Validate all example resources in scope of the repository
run: |
for p in $PATH_TO_EXAMPLES;
do
echo "here is p"
echo "$p"
for f in $p;
do
echo "here is f"
echo "$f"
done
do
# Ensure directory ends with "/"
if [[ ! "$p" =~ .*/$ ]]; then
p="$p/"
fi
# java -jar referencevalidator-cli-$REFERENZVALIDATOR_VERSION.jar erp $GITHUB_WORKSPACE/$p*.xml $GITHUB_WORKSPACE/$p*.json --accepted-encodings xml --accepted-encodings json --no-profile-validity-period-check
for f in $p*;
do
java -jar referencevalidator-cli-$REFERENZVALIDATOR_VERSION.jar erp $f --accepted-encodings xml --accepted-encodings json --no-profile-validity-period-check
done
done
- name: Cleanup
Expand Down

0 comments on commit 77f75e2

Please sign in to comment.