diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index ad31371..f4d43ce 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -74,8 +74,8 @@ jobs: url=$(echo "$user_info" | jq -r '.html_url') if [[ "$OUTPUT_FORMAT" == "html" ]]; then - # HTML format with enforced size - contributor_output="$contributor_output\"$login\" " + # HTML format with enforced size (table cells prevent GitHub's display:block from stacking images) + contributor_output="$contributor_output\"$login\"" else # Markdown format (default) contributor_output="$contributor_output[![$login](${avatar}&s=64)]($url) " @@ -83,9 +83,15 @@ jobs: done # Build the contributors section - contrib_section=" - $contributor_output - " + if [[ "$OUTPUT_FORMAT" == "html" ]]; then + contrib_section=" +$contributor_output
+" + else + contrib_section=" +$contributor_output +" + fi # Update README between the markers awk -v contrib="$contrib_section" '