Skip to content

Update embed actions to work with postgres (#892) #129

Update embed actions to work with postgres (#892)

Update embed actions to work with postgres (#892) #129

Workflow file for this run

name: Embed docsite
on:
push:
branches:
- main
jobs:
trigger-embed-staging:
runs-on: ubuntu-latest
steps:
- name: Embed docs into staging
env:
APOLLO_STAGING_API_KEY: ${{ secrets.APOLLO_STAGING_API_KEY }}
run: |
curl -f -X POST https://apollo.staging.openfn.org/services/embed_docsite \
-H "Content-Type: application/json" \
-d "{
\"target\": \"postgres\",
\"api_key\": \"$APOLLO_STAGING_API_KEY\"
}"
trigger-embed-prod:
runs-on: ubuntu-latest
steps:
- name: Embed docs into prod
env:
APOLLO_PROD_API_KEY: ${{ secrets.APOLLO_PROD_API_KEY }}
run: |
curl -f -X POST https://apollo.openfn.org/services/embed_docsite \
-H "Content-Type: application/json" \
-d "{
\"target\": \"postgres\",
\"api_key\": \"$APOLLO_PROD_API_KEY\"
}"