Merge pull request #337 from metaDAOproject/feat/sync-staging #75
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: Build and Apply Hasura Metadata [STAGING] | |
on: | |
push: | |
branches: [staging] | |
paths: | |
- "**" | |
jobs: | |
update_hasura: | |
name: Update Hasura Configuration based on any metadata changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Apply hasura metadata | |
uses: tibotiber/hasura-action@master # use a tagged version instead of master | |
with: | |
args: metadata apply | |
workdir: | |
env: | |
HASURA_ENDPOINT: ${{ secrets.HASURA_ADMIN_ENDPOINT_STAGING }} | |
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET_STAGING }} | |
HASURA_WORKDIR: packages/hasura # replace this by your own path if needed |