Skip to content

GET UP

GET UP #472

Workflow file for this run

name: GET UP
on:
workflow_dispatch:
inputs:
message:
description: "weather message"
required: false
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
KLING_COOKIE: ${{ secrets.KLING_COOKIE }}
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
jobs:
sync:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: GET UP
run: |
python get_up.py ${{ secrets.G_T }} ${{ github.repository }} --weather_message ": ${{ github.event.inputs.message }}" --tele_token ${{ secrets.TG_TOKEN }} --tele_chat_id ${{ secrets.TG_CHAT_ID }}
- name: Push New Pic
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add OUT_DIR/* knowledge.txt questions.txt
git commit -m "generated today pic" || echo "no need to commit "
git push || echo "no file change"