Skip to content

chore: rollout workflow #5

chore: rollout workflow

chore: rollout workflow #5

# Call Bytebase API to approve the migration
name: Approve Migration
on:
pull_request:
branches:
- main
paths:
- "**.up.sql"
jobs:
bytebase-approve-migration:
runs-on: ubuntu-latest
env:
API_ENDPOINT: "https://bytebase-ci.zeabur.app/v1"
SERVICE_ACCOUNT: "[email protected]"
name: Approve Migration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Bytebase
id: login
uses: ./.github/actions/login
with:
endpoint: ${{ env.API_ENDPOINT }}
service_account: ${{ env.SERVICE_ACCOUNT }}
service_account_key: ${{ secrets.BYTEBASE_PASSWORD }}
- name: Approve issue
id: approve
uses: ./.github/actions/approve
with:
endpoint: ${{ env.API_ENDPOINT }}
token: ${{ steps.login.outputs.token }}
issue_id: 114
comment: "Approved by CI"