This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
64 lines (56 loc) · 1.73 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: 'yt2anchorfm'
author: 'Guilherme Costa'
description: 'yt2anchorfm helps you to upload an audio file from a given youtube video automatically to your Anchor.fm account.'
inputs:
anchor_email:
description: 'Email used to log in to Anchor.fm'
required: true
anchor_password:
description: 'Password used to log in to Anchor.fm'
required: true
keep_episodes_num:
description: 'Number of latest episodes to keep after an upload. Drafts and older episodes will be deleted. Using zero will not remove any episodes.'
required: false
default: '0'
runs:
using: 'composite'
steps:
- name: Cloning yt2anchorfm repo
uses: actions/checkout@v3
with:
repository: zephyrus3/yt2anchorfm
path: yt2anchorfm
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Check geckodriver/firefox
run: |
echo "geckodriver/firefox"
which geckodriver
geckodriver --version
which firefox
firefox --version
shell: bash
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y ffmpeg
shell: bash
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r yt2anchorfm/requirements.txt
shell: bash
- name: Run yt2anchor.py
run: |
python yt2anchorfm/yt2anchor.py
env:
ANCHOR_EMAIL: ${{ inputs.anchor_email }}
ANCHOR_PASSWORD: ${{ inputs.anchor_password }}
KEEP_EPISODES_NUM: ${{ inputs.keep_episodes_num }}
EPISODE_PATH: ${{ github.workspace }}
shell: bash
branding:
icon: 'upload-cloud'
color: 'purple'