DenverCoder1/github-readme-youtube-cards là một trong những repo chuyên xử lý ảnh mà TopGit theo dõi, hiện có 283 sao, viết chủ yếu bằng Python. Workflow for displaying recent YouTube videos as SVG cards in your readme
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Workflow for displaying recent YouTube videos as SVG cards in your readme
Basic Usage
Add the following snippet to your markdown file where you want the cards to appear.
<!-- BEGIN YOUTUBE-CARDS -->
<!-- END YOUTUBE-CARDS -->
In your repo, create a .github folder and inside create a folder named workflows if it does not exist. Then create a file in your .github/workflows/ folder and give it a name such as youtube-cards.yml with the following contents.
name: GitHub Readme YouTube Cards
on:
schedule:
# Runs every hour, on the hour
- cron: "0 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# Allow the job to commit to the repository
permissions:
contents: write
# Run the GitHub Readme YouTube Cards action
steps:
- uses: DenverCoder1/github-readme-youtube-cards@main
with:
channel_id: UCipSxT7a3rn81vGLw9lqRkg
Make sure to change the channel_id to your YouTube channel ID.
The cron expression in the example above is set to run at the top of every hour. The first time, you may want to trigger the workflow manually.
You're done! Star the repo and share it with friends! ⭐
See below for advanced configuration.
Live Example
Advanced Configuration
See action.yml for full details.
Check out the Wiki for frequently asked questions.
📺 A Channel ID or Playlist ID is required. See How to Locate Your Channel ID in the wiki for more information. To filter videos by type such as removing shorts or showing only popular videos, see How to Filter Videos by Type.
🔑 Some features require a YouTube API key. See Setting Up the Action with a YouTube API Key in the wiki for more information.
🎨 See Setting Theme Contexts for Light and Dark Mode in the wiki for more information.
💬 See this directory for a list of locales with the word "views" translated. The timestamps will still be translated using Babel even if a translation file is not present. See issue #48 for info on contributing translations.
Outputs
Output
Description
markdown
The generated Markdown or HTML used for updating the README file
committed
Whether the action has created a commit (true or false)
commit_long_sha
The full SHA of the commit that has just been created
commit_sha
The short 7-character SHA of the commit that has just been created
pushed
Whether the action has pushed to the remote (true or false)
See Using the Markdown as an Action Output for more information.
Example Workflow
This is an advanced example showing the available options. All options are optional except channel_id.
name: GitHub Readme YouTube Cards
on:
schedule:
# Runs every hour, on the hour
- cron: "0 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# Allow the job to commit to the repository
permissions:
contents: write
# Run the GitHub Readme YouTube Cards action
steps:
- uses: DenverCoder1/github-readme-youtube-cards@main
with:
channel_id: UCipSxT7a3rn81vGLw9lqRkg
lang: en
comment_tag_name: YOUTUBE-CARDS
youtube_api_key: ${{ secrets.YOUTUBE_API_KEY }} # Configured in Actions Secrets (see Wiki)
max_videos: 6
base_url: https://ytcards.demolab.com/
card_width: 250
border_radius: 5
background_color: "#0d1117"
title_color: "#ffffff"
stats_color: "#dedede"
theme_context_light: '{ "background_color": "#ffffff", "title_color": "#24292f", "stats_color": "#57606a" }'
theme_context_dark: '{ "background_color": "#0d1117", "title_color": "#ffffff", "stats_color": "#dedede" }'
max_title_lines: 2
show_duration: true # Requires YouTube API Key (see Wiki)
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_message: "docs(readme): Update YouTube cards"
readme_path: README.md
output_only: false
output_type: markdown
Example Playlist Workflow
This is an example workflow for using a playlist instead of a channel.
name: GitHub Readme YouTube Cards
on:
schedule:
# Runs every hour, on the hour
- cron: "0 * * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# Allow the job to commit to the repository
permissions:
contents: write
# Run the GitHub Readme YouTube Cards action
steps:
- uses: DenverCoder1/github-readme-youtube-cards@main
with:
playlist_id: PL9YUC9AZJGFFAErr_ZdK2FV7sklMm2K0J
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request if you have a way to improve this project.
Make sure your request is meaningful and you have tested the app locally before submitting a pull request.
Please check out our contributing guidelines for more information on how to contribute to this project.
🙋♂️ Support
💙 If you like this project, give it a ⭐ and share it with friends!
DenverCoder1/github-readme-youtube-cards thuộc nhóm Image Tools trên TopGit, cùng 8 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
DenverCoder1/github-readme-youtube-cards có bao nhiêu sao?
DenverCoder1/github-readme-youtube-cards có 283 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/DenverCoder1/github-readme-youtube-cards. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
DenverCoder1/github-readme-youtube-cards có những chủ đề gì?
GitHub topics của DenverCoder1/github-readme-youtube-cards: "dynamic", "github", "hacktoberfest", "profile-readme", "readme", "svg", "workflows", "youtube". TopGit xếp repo vào nhóm Image Tools.
DenverCoder1/github-readme-youtube-cards có phải mã nguồn mở không?
Có — DenverCoder1/github-readme-youtube-cards phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/DenverCoder1/github-readme-youtube-cards.
DenverCoder1/github-readme-youtube-cards có trang demo không?
Dự án có trang chủ ở https://ytcards.demolab.com. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
DenverCoder1/github-readme-youtube-cards còn đang phát triển không?
Commit gần nhất trên DenverCoder1/github-readme-youtube-cards là 27 ngày trước (theo timestamp GitHub). Repo có 60 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc thêm về DenverCoder1/github-readme-youtube-cards ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/DenverCoder1/github-readme-youtube-cards là nguồn chính thức.