-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.22 KB
/
a2.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
40
41
42
43
44
45
46
47
48
49
name: A2
on:
# schedule:
# - cron: '00 22 * * *' # AM 07:00, KST
# - cron: '00 00 * * *' # AM 09:00, KST
# - cron: '00 02 * * *' # AM 11:00, KST
# - cron: '00 04 * * *' # AM 13:00, KST
# - cron: '00 07 * * *' # AM 14:00, KST
workflow_dispatch:
inputs:
persona:
type: choice
description: "Choose Jellys"
required: false
default: 'Wonny'
options:
- Wonny
- Belty
- Bolby
env:
PERSONA: ${{ github.event.inputs.persona }}
jobs:
build:
environment: goldminer
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -e .
- name: execute python script
env:
BLOG_NAME: ${{ secrets.BLOG_NAME }}
NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }}
NAVER_CLIENT_SECRET: ${{ secrets.NAVER_CLIENT_SECRET }}
TISTORY_ACCESS_TOKEN: ${{ secrets.TISTORY_ACCESS_TOKEN }}
run: python src/goldminer/automations/a2.py