Skip to content

generate-image-wall #20

generate-image-wall

generate-image-wall #20

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