-
Notifications
You must be signed in to change notification settings - Fork 13
30 lines (30 loc) · 919 Bytes
/
stackexchange.yml
File metadata and controls
30 lines (30 loc) · 919 Bytes
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
name: StackExchange
on:
schedule:
- cron: '0 0 * * 0' # every Sunday at midnight
workflow_dispatch:
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Fetch data
run: |
mkdir /tmp/stackexchange
python bitcoin.stackexchange.com/main.py
env:
DATA_DIR: /tmp/stackexchange
ES_ENGINE: ${{ secrets.ES_ENGINE }}
ES_URL: ${{ secrets.ES_URL }}
ES_TOKEN: ${{ secrets.ES_TOKEN }}
CLOUD_ID: ${{ secrets.CLOUD_ID }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}
USERNAME: ${{ secrets.USERNAME }}
INDEX: ${{ secrets.INDEX }}