GitHub Readme YouTube Cards #985
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: UCGhD7bIrt1o6ODs_Abme08A | |
lang: en | |
comment_tag_name: YOUTUBE-CARDS | |
youtube_api_key: ${{ secrets.YOUTUBE_API_KEY }} # Configured in Actions Secrets (see Wiki) | |
max_videos: 4 | |
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 |