-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 913 Bytes
/
add_data.yaml
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
name: Add Data to Firestore
on:
schedule:
# 15분 간격으로 실행
- cron: '*/15 * * * *'
workflow_dispatch:
jobs:
run-code:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
- name: Install dependencies
run: pip install -r ./rpas/requirements.txt
- name: create-json
id: create-json
uses: jsdaniell/[email protected]
with:
name: "serviceAccount.json"
json: ${{ secrets.SERVICE_ACCOUNT }}
- name: Add data to Firestore
run: |
python ./rpas/add_data_to_firestore.py
env:
END_POINT: ${{ secrets.END_POINT }}
SERVICE_KEY: ${{ secrets.SERVICE_KEY }}