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.
This action is deprecated, please use AnimMouse/setup-yt-dlp instead.
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
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
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
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 }}