gautamkrishnar / blog-post-workflow

Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
https://github.com/marketplace/actions/blog-post-workflow
GNU Affero General Public License v3.0
3.02k stars 269 forks source link

[Bug]: style does not work on Youtube videos #159

Closed ghorbani-mohammad closed 2 years ago

ghorbani-mohammad commented 2 years ago

Describe the bug Hi there, I want to remove borders from the videos item so I give the below attribute to td elements. But it seems that style attribute will be removed after running the action

style="border:none;"

Expected behavior I don't want to see borders outside of videos.

Screenshots I want to remove this borders. image

Workflow Yml Used

name: Latest Youtube videos workflow
on:
  schedule:
    # Runs every hour, on the hour
    - cron: "0 * * * *"
  workflow_dispatch:

jobs:
  update-readme-with-youtube:
    name: Update this repo's README with latest videos from YouTube
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: gautamkrishnar/blog-post-workflow@master
        with:
          feed_list: "https://www.youtube.com/feeds/videos.xml?channel_id=UC6wsMDXvLDbUi6aw1xhVbNA"
          custom_tags: "channelId/yt:channelId/,videoId/yt:videoId/"
          date_format: "mmm d, yyyy"
          template: '<table><tr><td style="border:none;"><a href="$url"><img width="140px" src="https://i.ytimg.com/vi/$videoId/mqdefault.jpg"></a></td>$newline<td style="border:none;"><a href="$url">$title</a><br/>$date</td></tr></table>$newline'
          committer_email: "michael.ghorb@gmail.com"
          comment_tag_name: "YOUTUBE-POST-LIST"
gautamkrishnar commented 2 years ago

As you can see from the readme source code the workflow is doing its job just fine. The borders are not showing up on readme is just because of the Github frontend CSS styling and truncating. Please reach out to GitHub support to know why it is not showing up. Providing info on that is beyond the scope of this project.

### 📺 My recent videos on the Youtube
<!-- YOUTUBE-POST-LIST:START --><table><tr><td style="border:none;"><a href="https://www.youtube.com/watch?v=wkHPLbtnZCA"><img width="140px" src="https://i.ytimg.com/vi/wkHPLbtnZCA/mqdefault.jpg"></a></td>
<td style="border:none;"><a href="https://www.youtube.com/watch?v=wkHPLbtnZCA">LinkedIn Crawler with Django Part 2</a><br/>Jul 24, 2022</td></tr></table>
<table><tr><td style="border:none;"><a href="https://www.youtube.com/watch?v=CDhUzTOIZO4"><img width="140px" src="https://i.ytimg.com/vi/CDhUzTOIZO4/mqdefault.jpg"></a></td>
<td style="border:none;"><a href="https://www.youtube.com/watch?v=CDhUzTOIZO4">LinkedIn Crawler with Django Part 1</a><br/>Jul 22, 2022</td></tr></table>
<table><tr><td style="border:none;"><a href="https://www.youtube.com/watch?v=swLAV_uCYCk"><img width="140px" src="https://i.ytimg.com/vi/swLAV_uCYCk/mqdefault.jpg"></a></td>
<td style="border:none;"><a href="https://www.youtube.com/watch?v=swLAV_uCYCk">How To Deploy Django App Over Kubernetes Cluster</a><br/>Jul 20, 2022</td></tr></table>
<table><tr><td style="border:none;"><a href="https://www.youtube.com/watch?v=X9Hc0VP0Z4U"><img width="140px" src="https://i.ytimg.com/vi/X9Hc0VP0Z4U/mqdefault.jpg"></a></td>
<td style="border:none;"><a href="https://www.youtube.com/watch?v=X9Hc0VP0Z4U">Elasticsearch with Django Tutorial</a><br/>Jul 8, 2022</td></tr></table>
<table><tr><td style="border:none;"><a href="https://www.youtube.com/watch?v=5hSus7e4X1U"><img width="140px" src="https://i.ytimg.com/vi/5hSus7e4X1U/mqdefault.jpg"></a></td>
<td style="border:none;"><a href="https://www.youtube.com/watch?v=5hSus7e4X1U">Docker Optimization with Multi-Stage technique &lpar;on Django APP&rpar;</a><br/>Jun 30, 2022</td></tr></table>
<!-- YOUTUBE-POST-LIST:END -->