Skip to content

install python with apt-get #21

install python with apt-get

install python with apt-get #21

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/checkout@v4
uses: actions/setup-go@v5

Check failure on line 17 in .github/workflows/releaseplaylists.yml

View workflow run for this annotation

GitHub Actions / Download & Release Youtube Playlists

Invalid workflow file

The workflow is not valid. .github/workflows/releaseplaylists.yml (Line: 17, Col: 9): 'uses' is already defined
with:
go-version: '>=1.17.0'
- 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: Install FFMEG
run: |
sudo apt-get install python3
- name: Get youtube-dl
run: |
sudo pip3 install --upgrade --force-reinstall "git+https://github.com/ytdl-org/youtube-dl.git"
- 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 }}