Skip to content

Commit

Permalink
Merge pull request #88 from PalladioSimulator/better-action-logs
Browse files Browse the repository at this point in the history
Only try to move log files if they exist
  • Loading branch information
dr6817 authored Jul 1, 2024
2 parents 924813e + c9726a2 commit c9bb305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ runs:
working-directory: ${{ env.tmp_dir }}
run: |
mkdir -p eclipse_logs/${{ inputs.source_path }}
mv retriever/configuration/*.log retriever/workspace/.metadata/.log eclipse_logs/${{ inputs.source_path }}
# Move log files, if they exist.
find retriever/configuration/ -maxdepth 1 -name "*.log" -exec mv -t eclipse_logs/${{ inputs.source_path }} {} +
find retriever/workspace/.metadata/ -maxdepth 1 -name ".log" -exec mv -t eclipse_logs/${{ inputs.source_path }} {}
- name: Upload Eclipse Logs
if: failure()
Expand Down

0 comments on commit c9bb305

Please sign in to comment.