Skip to content

Commit 8a8b6f1

Browse files
committed
docs: minor tweak
1 parent 4b9212d commit 8a8b6f1

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

content/docs/tutorials/github-release-cicd-workflow.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Database Release CI/CD with GitHub Action
2+
title: Database Release CI/CD with GitHub Actions
33
author: Ningjing
44
updated_at: 2025/02/17 18:00
55
tags: Tutorial
@@ -16,7 +16,7 @@ This tutorial demonstrates how to automate database release CI/CD using GitHub A
1616
- Automatically create releases in Bytebase after merging to the `main` branch and roll out to the database
1717
- Manually rollout the release to the database by stage (for **Pro or Enterprise plan**)
1818

19-
While this guide uses GitHub Actions, the same principles can be applied to other CI/CD platforms like GitLab CI, Bitbucket Pipelines, or Azure DevOps using the Bytebase API.
19+
While this guide uses GitHub Actions, the same principles can be applied to other platforms like GitLab CI, Bitbucket Pipelines, or Azure DevOps using the Bytebase API.
2020

2121
<HintBlock type="info">
2222

@@ -56,10 +56,10 @@ If you have **Enterprise Plan**, you can create a **Custom Role** for the servic
5656

5757
## Step 3 - Fork the Example Repository and Configure Variables
5858

59-
1. Go to the [bytebase-release-cicd-workflows-example](https://github.com/bytebase/release-cicd-workflows-example) repository and fork it. There are two workflows in this repository:
59+
1. Fork [bytebase/release-cicd-workflows-example](https://github.com/bytebase/release-cicd-workflows-example). There are two workflows in this repository:
6060

61-
- `.github/workflows/bytebase-check-release.yml`: Check the release SQL syntax when there's a pull request.
62-
- `.github/workflows/bytebase-release-cicd.yml`: Create a release in Bytebase when there's a merge to the `main` branch.
61+
- `.github/workflows/bytebase-check-release.yml`: [Lint the SQL](/docs/sql-review/overview/) migration files after the PR is created.
62+
- `.github/workflows/bytebase-release-cicd.yml`: Create a release in Bytebase after the PR is merged to the `main` branch.
6363

6464
1. Go into `.github/workflows/bytebase-release-cicd.yml` and `.github/workflows/bytebase-check-release.yml`. In the `env` section, replace the variable values with your own and commit the changes.
6565

@@ -134,7 +134,7 @@ To create migration files to trigger release creation, the files have to match t
134134

135135
![bb-rollout](/content/docs/tutorials/github-release-cicd-workflow/bb-rollout.webp)
136136

137-
## Breakdown of the GitHub Action Workflow
137+
## Breakdown of the GitHub Actions Workflow
138138

139139
1. Check out your repo and log in to Bytebase to gain the access token.
140140

@@ -152,7 +152,7 @@ To create migration files to trigger release creation, the files have to match t
152152
153153
1. The **create_release** step scans the files matching the pattern and collects them into a bundle. Note that these files should also obey the naming scheme mentioned above.
154154
155-
The bundle is first sent to check. If the check passes, a release is then created on Bytebase.
155+
The bundle is first sent for check. Because we set `FAIL_ON_ERROR`, the release will be created in Bytebase only when the check passes.
156156

157157
```yaml
158158
- name: Create release
@@ -199,12 +199,12 @@ To create migration files to trigger release creation, the files have to match t
199199

200200
These are the steps:
201201

202-
- create the plan from the release
203-
- check the plan
204-
- create the rollout
205-
- wait for the rollout to complete
202+
- Create the plan from the release
203+
- Check the plan
204+
- Create the rollout
205+
- Wait for the rollout to complete
206206

207-
In the **create_plan** step, you can set check-plan to FAIL_ON_ERROR to fail the action if plan checks report errors. Use SKIP to skip plan checks. Use FAIL_ON_WARNING to fail the action if plan checks report warning.
207+
In the **create_plan** step, you can set check-plan to `FAIL_ON_ERROR `to fail the action if plan checks report errors. Use `SKIP` to skip plan checks. Use `FAIL_ON_WARNING` to fail the action if plan checks report warning.
208208

209209
The rollout pipeline stages are created on demand in the **wait_rollout** step. You can use target-stage to early exit the step. When the target stage completes, it exits. If target-stage is not provided or not found, wait_rollout will wait until all stages complete. The target-stage is a stage title in the deployment config in the project setting.
210210

content/docs/vcs-integration/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Bytebase GitOps workflow is built upon the [Bytebase API](/docs/api/overview). I
1010

1111
- Pre-built GitHub Actions: https://github.com/marketplace?query=bytebase&type=actions
1212
- Examples: https://github.com/bytebase/release-cicd-workflows-example
13-
- Tutorial: [Database Release CI/CD with GitHub Action](/docs/tutorials/github-release-cicd-workflow/)
13+
- Tutorial: [Database Release CI/CD with GitHub Actions](/docs/tutorials/github-release-cicd-workflow/)
1414

1515
## Other VCSs
1616

0 commit comments

Comments
 (0)