Skip to content

Populate elastic #15160

Populate elastic

Populate elastic #15160

name: Populate elastic
on:
workflow_dispatch:
workflow_run:
workflows:
- Provision Elastic Cloud deployment
types:
- completed
schedule:
- cron: "*/15 * * * *"
jobs:
populate-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run script
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
BUSINESS_ACCESS_TOKEN: ${{ secrets.BUSINESS_ACCESS_TOKEN }}
JOINT_ACCESS_TOKEN: ${{ secrets.JOINT_ACCESS_TOKEN }}
ELASTIC_CLOUD_ID: ${{ secrets.ELASTIC_CLOUD_ID }}
ELASTIC_USERNAME: ${{ secrets.ELASTIC_USERNAME }}
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
run: python starling_to_elastic.py