skip testrunner related files/folders from ocm#1597
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
If you don't agree with the proposal what would be another way to skip non-ocm related directories from being processed by the action? 😊 In general, the script seems to not like folders that contain subfolders. |
Co-authored-by: Indrit Fejza <indrit.fejza@sap.com>
|
thanks for the pr! the root cause seems to be that the flatetning loop iterates over all subdirectories, including non-ocm artifacts. since ocm fragments are always find . -mindepth 2 -name "*.tar.gz" -exec mv {} . \;
echo "extracting files with pattern *.tar.gz"
for tarffile in $(find . -maxdepth 1 -name "*.tar.gz"); do
echo "extracting ${tarfile} into $PWD"
tar xf "${tarfile}"
unlnk "${tarfile}"
done
since the flattening loop can't be removed entirely - download-artifact@v3 (used on GHE) doesn't support merge-multiple (according to the comment above) - scoping it to .tar.gz files, seems right to me |
Skip testunner related folders to be considered in merge-ocm-fragments action
Release note: