{"id":28437197,"url":"https://github.com/bytebase/rollout-action","last_synced_at":"2025-06-27T20:31:31.918Z","repository":{"id":272384076,"uuid":"916014554","full_name":"bytebase/rollout-action","owner":"bytebase","description":"Github Action to wait rollout to finish on Bytebase","archived":false,"fork":false,"pushed_at":"2025-04-07T05:22:17.000Z","size":1661,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T07:39:04.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytebase.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":"2025-01-13T09:44:08.000Z","updated_at":"2025-04-03T02:48:58.000Z","dependencies_parsed_at":"2025-01-20T13:28:08.401Z","dependency_job_id":"3e8ba091-00ef-4aaa-b2ef-b7e372f14985","html_url":"https://github.com/bytebase/rollout-action","commit_stats":null,"previous_names":["bytebase/actions-wait-rollout","bytebase/actions-roll-out","bytebase/actions-rollout","bytebase/rollout-action"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bytebase/rollout-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Frollout-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Frollout-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Frollout-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Frollout-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytebase","download_url":"https://codeload.github.com/bytebase/rollout-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Frollout-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262327132,"owners_count":23294208,"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":"2025-06-05T23:09:11.779Z","updated_at":"2025-06-27T20:31:31.818Z","avatar_url":"https://github.com/bytebase.png","language":"TypeScript","readme":"# About\n\nGithub action to rollout on Bytebase.\n\n- Tutorial:\n  [Database GitOps with GitHub Actions](https://www.bytebase.com/docs/tutorials/gitops-github-workflow/)\n- Sample repo: https://github.com/bytebase/example-gitops-github-flow\n\n## Inputs\n\n| Input Name      | Description                                                                                                                                                                                                                                | Required | Default |\n| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| `url`           | The bytebase URL.                                                                                                                                                                                                                          | Yes      |         |\n| `token`         | The Bytebase access token.                                                                                                                                                                                                                 | Yes      |         |\n| `plan`          | The plan to create the rollout from. Format: `projects/{project}/plans/{plan}`                                                                                                                                                             | Yes      |         |\n| `target-stage`  | Bytebase rollout pipeline can contain multiple stages. This action will exit after complete deploying the `target-stage` stage. `target-stage` is the stage environment. Example: `environments/prod`. Fail if there is no matching stage. | Yes      |         |\n| `rollout-title` | The created rollout title. Example: `${{ github.event.head_commit.message }}`                                                                                                                                                              | No       |         |\n\n## Example\n\n```yaml\non:\n  push:\n    branches:\n      - main\n\njobs:\n  bytebase-cicd:\n    runs-on: ubuntu-latest\n    env:\n      BYTEBASE_URL: 'https://demo.bytebase.com'\n      BYTEBASE_PROJECT: 'projects/example'\n      BYTEBASE_SERVICE_ACCOUNT: 'demo@service.bytebase.com'\n      BYTEBASE_TARGETS: 'instances/mysql1/databases/db1,instances/mysql1/databases/db2'\n    name: Bytebase cicd\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n      - name: Login to Bytebase\n        id: login\n        uses: bytebase/login-action@main\n        with:\n          url: ${{ env.BYTEBASE_URL }}\n          service-account: ${{ env.BYTEBASE_SERVICE_ACCOUNT }}\n          service-account-key: ${{ secrets.BYTEBASE_PASSWORD }}\n      - name: Create release\n        id: create_release\n        uses: bytebase/create-release-action@main\n        with:\n          url: ${{ env.BYTEBASE_URL }}\n          token: ${{ steps.login.outputs.token }}\n          project: ${{ env.BYTEBASE_PROJECT }}\n          file-pattern: 'migrations/*.sql'\n      - name: Create plan\n        id: create_plan\n        uses: bytebase/create-plan-from-release-action@main\n        with:\n          url: ${{ env.BYTEBASE_URL }}\n          token: ${{ steps.login.outputs.token }}\n          project: ${{ env.BYTEBASE_PROJECT }}\n          release: ${{ steps.create_release.outputs.release }}\n          targets: ${{ env.BYTEBASE_TARGETS }}\n      - name: rollout\n        id: rollout\n        uses: bytebase/rollout-action@main\n        with:\n          url: ${{ env.BYTEBASE_URL }}\n          token: ${{ steps.login.outputs.token }}\n          plan: ${{ steps.create_plan.outputs.plan }}\n          target-stage: prod\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Frollout-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytebase%2Frollout-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Frollout-action/lists"}