Skip to content

Daily Push Summary From XML Files to ES INDEX #521

Daily Push Summary From XML Files to ES INDEX

Daily Push Summary From XML Files to ES INDEX #521

name: Daily Push Summary From XML Files to ES INDEX
on:
schedule:
- cron: "0 2 * * *" # every day at 02:00 AM UTC
workflow_dispatch:
repository_dispatch:
permissions:
contents: write
jobs:
execute_and_commit:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ES_CLOUD_ID: ${{ secrets.ES_CLOUD_ID }}
ES_USERNAME: ${{ secrets.ES_USERNAME }}
ES_PASSWORD: ${{ secrets.ES_PASSWORD }}
ES_INDEX: ${{ secrets.ES_INDEX }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.x
- name: Install dependencies
run: |
pip install --upgrade pip setuptools
pip install -r requirements.txt
- name: Execute Python script
run: python push_summary_to_es.py