-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 969 Bytes
/
schedule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: schedule
on:
schedule:
- cron: "0 9 * * 0"
push:
branches:
- main
jobs:
excute-python:
runs-on: ubuntu-latest
env:
TZ: Asia/Tokyo
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: excute python
env:
QIITA_AUTH: ${{secrets.QIITA_AUTH}}
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 main.py
git add .
git commit -m "update by github action"
git push