Skip to content

AnimMouse/setup-youtube-dl

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup youtube-dl for GitHub Actions

Setup youtube-dl on GitHub Actions to use youtube-dl.

This action installs youtube-dl for use in actions by installing it on tool cache using AnimMouse/tool-cache.

This action is implemented as a composite action.

Deprecation

This action is deprecated, please use AnimMouse/setup-yt-dlp instead.

Usage

To use youtube-dl, run this action before youtube-dl.

steps:
  - name: Setup youtube-dl
    uses: AnimMouse/setup-youtube-dl@v1
    
  - run: youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc

FFmpeg

To improve youtube-dl's handling of formats like merging bestvideo+bestaudio instead of just using best, it is recommended to install FFmpeg first by using AnimMouse/setup-ffmpeg.

steps:
  - name: Setup FFmpeg
    uses: AnimMouse/setup-ffmpeg@v1
    
  - name: Setup youtube-dl
    uses: AnimMouse/setup-youtube-dl@v1
    
  - run: youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc

Specific version

You can specify the version you want. By default, this action downloads the latest version if version is not specified.

steps:
  - name: Setup youtube-dl
    uses: AnimMouse/setup-youtube-dl@v1
    with:
      version: 2021.02.04

GitHub token

This action automatically uses a GitHub token in order to authenticate with GitHub API and avoid rate limiting. You can also specify your own read-only fine-grained personal access token.

steps:
  - name: Setup youtube-dl
    uses: AnimMouse/setup-youtube-dl@v1
    with:
      token: ${{ secrets.GH_PAT }}