{"id":27621781,"url":"https://github.com/smplrspace/hasura-action","last_synced_at":"2025-04-23T08:04:04.324Z","repository":{"id":47641095,"uuid":"221658499","full_name":"smplrspace/hasura-action","owner":"smplrspace","description":" GitHub Action wrapping the Hasura CLI","archived":false,"fork":false,"pushed_at":"2025-03-24T06:22:06.000Z","size":12,"stargazers_count":52,"open_issues_count":1,"forks_count":19,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T07:22:18.650Z","etag":null,"topics":["continuous-integration","contribution","github-actions","hasura","open-source"],"latest_commit_sha":null,"homepage":"","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/smplrspace.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-14T09:24:30.000Z","updated_at":"2025-03-24T06:02:44.000Z","dependencies_parsed_at":"2025-03-24T07:22:25.176Z","dependency_job_id":"2ab450bd-80d8-4e9c-95e6-8a440875eee8","html_url":"https://github.com/smplrspace/hasura-action","commit_stats":{"total_commits":21,"total_committers":5,"mean_commits":4.2,"dds":"0.19047619047619047","last_synced_commit":"b0152f12f325357afbfa2bbce708dd20069a3b53"},"previous_names":["smplrspace/hasura-action"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smplrspace%2Fhasura-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smplrspace%2Fhasura-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smplrspace%2Fhasura-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smplrspace%2Fhasura-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smplrspace","download_url":"https://codeload.github.com/smplrspace/hasura-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395281,"owners_count":21423400,"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":"2025-04-23T08:04:03.407Z","updated_at":"2025-04-23T08:04:04.318Z","avatar_url":"https://github.com/smplrspace.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: smplrspace/hasura-action@v3\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%2Fsmplrspace%2Fhasura-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmplrspace%2Fhasura-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmplrspace%2Fhasura-action/lists"}