Skip to content

Commit

Permalink
Necessary adjustment files.json is in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
SergejMuhic authored Jul 18, 2021
1 parent 37b26f1 commit 6da1c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/filter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:
- name: Specification modifications
id: specification_modifications #grep -o .xml files.json | wc -w (for counting multiple instances per line)
run: |
if [[ $HOME/files.json ]] && [[ $(($(grep -ciF ".xml" $HOME/files.json)-$(egrep -ci "DocProperty.xml|DocQuantity.xmlDoc|PropertySet.xml|DocQuantitySet.xml|DocTemplateDefinition.xml|DocTemplateItem.xml|DocTemplateUsage.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json))) -gt 0 ]]; then
if [[ $HOME/files.json ]] && [[ $(($(grep -ciF ".xml" $HOME/files.json)-$(grep -oiE "DocProperty.xml|DocQuantity.xmlDoc|PropertySet.xml|DocQuantitySet.xml|DocTemplateDefinition.xml|DocTemplateItem.xml|DocTemplateUsage.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json | wc -l))) -gt 0 ]]; then
echo 'Schema changed.';
echo ::set-output name=SCHEMACHANGED::true;
else
echo 'Schema did not change.';
echo ::set-output name=SCHEMACHANGED::false;
fi
if [[ $HOME/files.json ]] && [[ $(($(egrep -ci "DocProperty.xml|DocQuantity.xml|DocPropertySet.xml|DocQuantitySet.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json))) -gt 0 ]]; then
if [[ $HOME/files.json ]] && [[ $(($(grep -oiE "DocProperty.xml|DocQuantity.xml|DocPropertySet.xml|DocQuantitySet.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json | wc -l))) -gt 0 ]]; then
echo 'Properties or quantities changed';
echo ::set-output name=PROPSQUANTSCHANGED::true;
else
Expand Down

0 comments on commit 6da1c34

Please sign in to comment.