Skip to content

Commit

Permalink
Only try to move log files if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
FloBoJa authored Jun 30, 2024
1 parent 2544a7f commit c9726a2
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 c9726a2

Please sign in to comment.