Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: schedule
permissions:
contents: "write"
on:
schedule:
- cron: "0 1 * * *"
- cron: "0 22 * * *"
push:
branches:
- main
jobs:
excute-python:
runs-on: ubuntu-latest
env:
TZ: Asia/Tokyo
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: excute python
run: |
git config --local user.email "bot@github.com"
git config --local user.name "bot"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
python get_picture_datas.py
git add .
git commit -m "update by github action"
git push