Skip to content

Commit

Permalink
Add github action to run export
Browse files Browse the repository at this point in the history
  • Loading branch information
stormy committed Aug 30, 2023
1 parent 4cb959f commit 4f7f424
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-records.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Shopify Data Export

on:
# schedule:
# - cron: '30 5,17 * * *'
workflow_dispatch:

jobs:
update-all-records:

runs-on: ubuntu-latest
environment: staging

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Update all records
run: |
python src/main.py
env:
BR_SHOPIFY_URL: ${{ vars.BR_SHOPIFY_URL }}
BR_SHOPIFY_PAT: ${{ secrets.BR_SHOPIFY_PAT }}
BR_ENVIRONMENT_NAME: ${{ vars.BR_ENVIRONMENT_NAME }}
BR_ACCOUNT_ID: ${{ vars.BR_ACCOUNT_ID }}
BR_CATALOG_NAME: ${{ vars.BR_CATALOG_NAME }}
BR_API_TOKEN: ${{ secrets.BR_API_TOKEN }}
BR_OUTPUT_DIR: "."

0 comments on commit 4f7f424

Please sign in to comment.