-
Notifications
You must be signed in to change notification settings - Fork 49
44 lines (35 loc) · 1.25 KB
/
generate-image-wall.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: generate-image-wall
on:
# Uncomment line 5 and line 6 to activate scheduled run.
# schedule:
# - cron: '0 6 * * *' # 6:00 UTC everyday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script to generate movie poster wall
run: python image_wall.py -i=${{ secrets.DOUBAN_ID }} -c=18 -r=8 -o=8 -rd=True
- name: execute py script to generate album cover wall
run: python image_wall.py -i=${{ secrets.DOUBAN_ID }} -m='music' -c=10 -r=8 -o=8 -rd=True -s=True
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update poster wall image." -a
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main