Skip to content

Merge pull request #204 from novaforgood/Max/email-whitelist #61

Merge pull request #204 from novaforgood/Max/email-whitelist

Merge pull request #204 from novaforgood/Max/email-whitelist #61

Workflow file for this run

name: Hasura migrations (DEV)
on:
push:
branches:
- dev
paths:
- "hasura/**"
- ".github/workflows/prod.yml"
concurrency: dev_environment
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
cache: "npm"
- name: Install Hasura CLI
run: npm install --global [email protected]
- name: Apply Metadata
working-directory: ./hasura
run: hasura metadata apply --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: Print Migration Status
working-directory: ./hasura
run: hasura migrate status --database-name mentorcenter --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: Apply Migrations
working-directory: ./hasura
run: hasura migrate apply --all-databases --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: hasura metadata reload
working-directory: ./hasura
run: hasura metadata reload --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}