Skip to content

Generate GIF

Generate GIF #19

Workflow file for this run

name: Generate GIF
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
Setup_And_Run_And_Push:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2.5.0
- name: Setup Python
uses: actions/setup-python@v4.3.0
with:
python-version: "3.10"
- name: Install Dependencies
run: |
pip install wand numpy python-dotenv requests pygame
- name: Run Python Script
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
python ./src/main.py
- name: Commit files
id: commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git add --all
if [-z "$(git status --porcelain)"]; then
echo "::set-output name=push::false"
else
git commit -m "Add changes" -a
echo "::set-output name=push::true"
fi
shell: bash
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master