Skip to content

Commit c9bb305

Browse files
author
dr6817
authored
Merge pull request #88 from PalladioSimulator/better-action-logs
Only try to move log files if they exist
2 parents 924813e + c9726a2 commit c9bb305

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ runs:
512512
working-directory: ${{ env.tmp_dir }}
513513
run: |
514514
mkdir -p eclipse_logs/${{ inputs.source_path }}
515-
mv retriever/configuration/*.log retriever/workspace/.metadata/.log eclipse_logs/${{ inputs.source_path }}
515+
# Move log files, if they exist.
516+
find retriever/configuration/ -maxdepth 1 -name "*.log" -exec mv -t eclipse_logs/${{ inputs.source_path }} {} +
517+
find retriever/workspace/.metadata/ -maxdepth 1 -name ".log" -exec mv -t eclipse_logs/${{ inputs.source_path }} {}
516518
517519
- name: Upload Eclipse Logs
518520
if: failure()

0 commit comments

Comments
 (0)