diff --git a/.github/workflows/helm-loki-ci.yml b/.github/workflows/helm-loki-ci.yml index 4216917eeef34..4c49d52b164ee 100644 --- a/.github/workflows/helm-loki-ci.yml +++ b/.github/workflows/helm-loki-ci.yml @@ -83,7 +83,7 @@ jobs: echo "Comparing directories: $base_branch_dir and $pr_branch_dir" # Find all files in the left and right directories - base_branch_files=$(find "$base_branch_dir" -type f | sed "s|$base_branch_dir/||") + base_branch_files=$(if [[ -d "$base_branch_dir" ]]; then find "$base_branch_dir" -type f | sed "s|$base_branch_dir/||"; else echo ""; fi) pr_branch_files=$(find "$pr_branch_dir" -type f | sed "s|$pr_branch_dir/||") # Check for modified and removed files @@ -201,7 +201,7 @@ jobs: fi # close

and

- echo -e "\n\n<\p>\n<\details>" >> $output_file + echo -e "\n\n

\n
" >> $output_file done - name: Post diff as PR comment