{"id":22488786,"url":"https://github.com/tibotiber/hasura-action","last_synced_at":"2025-08-02T21:31:43.955Z","repository":{"id":47641095,"uuid":"221658499","full_name":"tibotiber/hasura-action","owner":"tibotiber","description":" GitHub Action wrapping the Hasura CLI","archived":false,"fork":false,"pushed_at":"2022-05-26T03:48:54.000Z","size":12,"stargazers_count":51,"open_issues_count":1,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-16T21:33:58.714Z","etag":null,"topics":["continuous-integration","contribution","github-actions","hasura","open-source"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tibotiber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-14T09:24:30.000Z","updated_at":"2024-05-31T16:04:06.000Z","dependencies_parsed_at":"2023-01-11T17:23:00.050Z","dependency_job_id":null,"html_url":"https://github.com/tibotiber/hasura-action","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":"0.19047619047619047","last_synced_commit":"b0152f12f325357afbfa2bbce708dd20069a3b53"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibotiber%2Fhasura-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibotiber%2Fhasura-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibotiber%2Fhasura-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibotiber%2Fhasura-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tibotiber","download_url":"https://codeload.github.com/tibotiber/hasura-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500220,"owners_count":17930019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-integration","contribution","github-actions","hasura","open-source"],"created_at":"2024-12-06T17:18:43.283Z","updated_at":"2024-12-06T17:20:47.076Z","avatar_url":"https://github.com/tibotiber.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# GitHub Actions for Hasura\n\nThis Action for [Hasura](https://hasura.io) enables arbitrary actions with the `hasura` cli.\n\n## Inputs\n\n- `args` - **Required**. This is the arguments you want to use for the `hasura` cli.\n\n## Environment variables\n\n- `HASURA_ENDPOINT` - **Required**. The endpoint of the Hasura GraphQL engine.\n\n- `HASURA_ADMIN_SECRET` - **Optional**. The admin secret (if any) for the Hasura GraphQL engine.\n\n- `HASURA_WORKDIR` - **Optional**. The path from the root of your repository to the directory where the `migrations` folder can be found.\n\n- `HASURA_ENGINE_VERSION` - **Optional**. The version of the hasura cli you want to use. By default, it will match the version from your endpoint and fall back on `stable` if the version endpoint request fails.\n\n## Example\n\nTo apply migrations with the Hasura CLI:\n\n```yaml\nname: Hasura migration\non:\n  push:\n    branches:\n      - master\njobs:\n  hasura_migration:\n    name: Hasura migration\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@v3\n      - name: Apply hasura migrations\n        uses: tibotiber/hasura-action@master # use a tagged version instead of master\n        with:\n          args: migrate apply --all-databases\n        env:\n          HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }}\n          HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}\n          HASURA_WORKDIR: backend/hasura # replace this by your own path if needed\n          HASURA_ENGINE_VERSION: v2.6.2 # replace this by the version you need, remove to use stable\n```\n\n## License\n\nThe Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).\n\nThis project was forked from [GitHub Action for Firebase](https://github.com/w9jds/firebase-action).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibotiber%2Fhasura-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftibotiber%2Fhasura-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibotiber%2Fhasura-action/lists"}