{"id":18895079,"url":"https://github.com/dolthub/dolt-action","last_synced_at":"2025-04-15T01:13:29.997Z","repository":{"id":44901171,"uuid":"370463401","full_name":"dolthub/dolt-action","owner":"dolthub","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-19T18:14:59.000Z","size":81,"stargazers_count":7,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-15T01:13:24.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dolthub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-24T19:28:00.000Z","updated_at":"2024-12-20T08:13:25.000Z","dependencies_parsed_at":"2022-09-16T03:41:26.921Z","dependency_job_id":null,"html_url":"https://github.com/dolthub/dolt-action","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolthub%2Fdolt-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolthub%2Fdolt-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolthub%2Fdolt-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dolthub%2Fdolt-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dolthub","download_url":"https://codeload.github.com/dolthub/dolt-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986316,"owners_count":21194025,"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":[],"created_at":"2024-11-08T08:26:28.516Z","updated_at":"2025-04-15T01:13:29.980Z","avatar_url":"https://github.com/dolthub.png","language":"Shell","readme":"# Dolt Action\n\nThis GitHub Action helps mutate Dolt repos in GitHub\nAction workflows.\n\n## Example Usage\n\n```yml\nname: Test\n\njobs:\n  hello_world_job:\n    runs-on: ubuntu-latest\n    name: A job to say hello\n    steps:\n      - name: Dolt Import\n        uses: dolthub/dolt-action@v1.0\n        id: 'dolt_import'\n        with:\n          remote: max-hoffman/dolt_action_test\n          dolthub_credential: ${{ secrets.DOLTHUB_CREDENTIAL }}\n          message: 'Dolt action commit'\n          commit_branch: 'master'\n          commit_user_email: max@dolthub.com\n          commit_author: 'Max Hoffman'\n          push: false\n          before: |\n            dolt sql -q \"insert into aminals (12, 'hummingbird', 61)\"\n```\n\n## Parameters\n\nThe main parameters are those involveded in configuring, pulling and\npushing a Dolt repository.\n\n- `remote`: DoltHub, S3, GCS remote endpoint. Each has a different\n    authentication technique.\n- `branch`: Indicate the branch to shallow-clone.\n- `before`: Bash script executed after the pull stage and before commit stage.\n- `after`: Bash script executed between commit and push stages.\n- `dolthub_credential`: A JWT that grants access to DoltHub remotes.\n- `google_credential`: A `service_account.json` that grants access to\n    Google Cloud remotes.\n- `push`: Whether to persist changes or discard at the step conclusion.\n- `clear` : A `dolt-action` deletes the local database during the\n    cleanup step. If concatenating multiple `dolt-action` steps,\n    `clear=False` will avoid unnecessarily re-cloning the database.\n- `commit_` options: Automate a commit following the before script.\n- `tag_` options: Tag HEAD or another ref at the end of the workflow.\n\nOutputs:\n\n- `commit`: If the script persisted a commit, this output stores the\n    associated commit hash.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolthub%2Fdolt-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdolthub%2Fdolt-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdolthub%2Fdolt-action/lists"}