Skip to content

Commit

Permalink
Add export to production environment action
Browse files Browse the repository at this point in the history
  • Loading branch information
stormy committed Sep 1, 2023
1 parent 4f7f424 commit 6497664
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/update-records.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,38 @@ on:
workflow_dispatch:

jobs:
update-all-records:
update-all-records-staging:

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: "."

update-all-records-production:

runs-on: ubuntu-latest
environment: production

steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down

0 comments on commit 6497664

Please sign in to comment.