Skip to content

Commit 898fe97

Browse files
Fix migrate data workflow
Always run "Migrate Data" in the development environment. Then, a release is required to get changes to production.
1 parent aa6c775 commit 898fe97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/migrate-data.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
jobs:
55
build:
66
runs-on: ubuntu-20.04
7-
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
7+
environment: Development
88
env:
99
MONGODB_PASSWORD: ${{ secrets.MONGODB_PASSWORD }}
1010
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
@@ -19,7 +19,7 @@ jobs:
1919
GIT_REPOSITORY_URL: https://github.com/neu-dsg/dailp-encoding
2020
OAUTH_TOKEN: ${{ secrets.OAUTH_TOKEN }}
2121
RUST_LOG: info
22-
TF_STAGE: ${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
22+
TF_STAGE: dev
2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v2
@@ -51,7 +51,7 @@ jobs:
5151
- name: Migrate data to MongoDB
5252
run: |
5353
nix develop --impure --command plan
54-
export DAILP_GRAPHQL_URL=$(nix develop --impure --command output functions_url)/graphql
54+
export DAILP_API_URL=$(nix develop --impure --command output functions_url)
5555
nix run .#migrate-data -L
5656
- name: Publish website
5757
run: |

0 commit comments

Comments
 (0)