Test #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main trigger | |
on: | |
schedule: | |
- cron: '00 22 * * *' # AM 07: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: Auth to GCP | |
uses: "google-github-actions/auth@v1" | |
with: | |
credentials_json: ${{ secrets.BLOGSPOT_BASE64 }} | |
- 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/a1.py |