-
Notifications
You must be signed in to change notification settings - Fork 21
44 lines (39 loc) · 1.17 KB
/
sync.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
name: Internetarchive-YouTube Sync
on:
workflow_dispatch:
push:
schedule:
- cron: '0 */6 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install aria2 -y
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install 'poetry>=1.1.13'
- name: Build
run: |
poetry build
pip install dist/*.whl
- name: Run main app
env:
ARCHIVE_USER_EMAIL: ${{ secrets.ARCHIVE_USER_EMAIL }}
ARCHIVE_PASSWORD: ${{ secrets.ARCHIVE_PASSWORD }}
CHANNELS: ${{ secrets.CHANNELS }}
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}
JSONBIN_KEY: ${{ secrets.JSONBIN_KEY }}
CLI_OPTIONS: ${{ secrets.CLI_OPTIONS }}
run: |
ia configure --username="$ARCHIVE_USER_EMAIL" --password="$ARCHIVE_PASSWORD"
ia-yt --create-collection --no-logs
ia-yt --no-logs $(echo $CLI_OPTIONS)