update get youtube-dl due to court decision #15
Workflow file for this run
This file contains 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: Download & Release Youtube Playlists | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.13 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Install PIGZ | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install pigz -y | |
- name: Install FFMEG | |
run: | | |
sudo apt-get install ffmpeg -y | |
- name: Get youtube-dl | |
run: | | |
sudo wget https://github.com/ytdl-org/youtube-dl/releases/download/2021.12.17/youtube-dl -O /usr/local/bin/youtube-dl | |
sudo chmod a+rx /usr/local/bin/youtube-dl | |
- name: Go Build | |
run: go build -o main -v . | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
body_path: ./resource/playlist-list.csv | |
release_name: New Youtube Playlist ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Go Run | |
run: | | |
./main | |
- name: Upload Release Assets | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./*.tar.gz | |
- name: Commit Removed Lines From List Of Playlist | |
uses: EndBug/add-and-commit@v5 | |
with: | |
author_name: AutoBot | |
author_email: hi@mrturkmen.com | |
message: "[automated msg]: playlist doc updated with new release" | |
branch: master | |
add: "resource/*.csv" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |