-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 972 Bytes
/
update.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
name: update
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *'
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
- name: Install Dependencies
run: |
cd updater
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Update
run: |
cd updater
python main.py
- name: Commit Changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: '[Actions] Updated video list.'