-
Notifications
You must be signed in to change notification settings - Fork 89
52 lines (44 loc) · 1.29 KB
/
clip.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
name: Clip
on:
workflow_dispatch:
inputs:
video_url:
description: "Video url:"
required: true
start_time:
description: "Clip start time:(hh:mm:ss)"
required: true
end_time:
description: "Clip end time:"
required: true
permissions:
contents: read
jobs:
clip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- name: Set up POT provider
run: |
docker run --name bgutil-provider -d -p 4416:4416 brainicism/bgutil-ytdlp-pot-provider
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install yt-dlp --pre
pip install -U bgutil-ytdlp-pot-provider
sudo apt update&&sudo apt install ffmpeg -y
mkdir output
- name: Get Clip
run: |
python3 ./main.py --url "${{ github.event.inputs.video_url }}" --start ${{ github.event.inputs.start_time }} --end ${{ github.event.inputs.end_time }}
- uses: actions/upload-artifact@v3
with:
name: output
path: output