Skip to content

GET UP

GET UP #120

Workflow file for this run

name: GET UP
on:
schedule:
# UTC 时间
- cron: "30 23 * * *"
workflow_dispatch:
inputs:
message:
description: "weather message"
required: false
jobs:
sync:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install python 3.10
uses: actions/setup-python@v4
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 }} "${{ secrets.BING_COOKIE }}" --weather_message "${{ github.event.inputs.message }}" --lark_app_key "${{ secrets.LARK_APP_KEY }}" --lark_app_secret "${{ secrets.LARK_APP_SECRET }}" --lark_webhook_url "${{ secrets.LARK_WEBHOOK_URL }}"
- name: Push New Pic
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "generated today pic" || echo "no need to commit "
git push || echo "no file change"