Populate elastic #12542
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: 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 |