diff --git a/.github/workflows/filter-changes.yml b/.github/workflows/filter-changes.yml index bd063d2c0..6f2c679e1 100644 --- a/.github/workflows/filter-changes.yml +++ b/.github/workflows/filter-changes.yml @@ -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