fix: unique user like character #335
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy hasura - dev | |
on: | |
push: | |
branches: | |
- dev | |
- staging | |
paths: | |
- hasura/** | |
jobs: | |
hasura_migration: | |
name: Hasura migration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Uppercase branch name | |
run: | | |
branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | |
echo "BRANCH_NAME=${branch_name^^}" >>${GITHUB_ENV} | |
- name: Apply hasura migrations | |
uses: tibotiber/hasura-action@master # use a tagged version instead of master | |
with: | |
args: deploy --endpoint $HASURA_ENDPOINT --admin-secret $HASURA_ADMIN_SECRET | |
env: | |
HASURA_ENDPOINT: ${{ secrets[format('HASURA_{0}_ENDPOINT', env.BRANCH_NAME)] }} | |
HASURA_ADMIN_SECRET: ${{ secrets[format('HASURA_{0}_ADMIN_SECRET', env.BRANCH_NAME)] }} | |
HASURA_WORKDIR: hasura # replace this by your own path if needed | |
HASURA_ENGINE_VERSION: v2.6.2 # replace this by the version you need, remove to use stable |