updated workflow #7
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: Update Data | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-data: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
environment: [prod] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set environment variables based on environment | |
run: | | |
echo "Running for Environment:: ${{ matrix.environment }}" | |
echo "ENVIRONMENT=${{ matrix.environment }}" >> $GITHUB_ENV | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Update DB | |
env: | |
IH_URL: ${{ vars.IH_URL }} | |
IH_KEY: ${{ vars.IH_KEY }} | |
TTH_URL: ${{ vars.TTH_URL }} | |
TTH_KEY: ${{ vars.TTH_KEY }} | |
run: | | |
python src/main.py --org="IH,TTH" --input="./data/ih.json,./data/tth.json" --output="output.json" |