Skip to content

chore: test upsert migration #1

chore: test upsert migration

chore: test upsert migration #1

name: Check Migration status
on:
pull_request:
branches:
- main
paths:
- "**/*.up.sql"
jobs:
bytebase-check-migration-status:
runs-on: ubuntu-latest
env:
BYTEBASE_URL: "https://bytebase-ci.zeabur.app"
SERVICE_ACCOUNT: "[email protected]"
PROJECT: "example"
ISSUE_TITLE: "[${{ github.repository }}#${{ github.event.number }}] ${{ github.event.pull_request.title }}"
name: Check Migration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Bytebase
id: login
uses: ./.github/actions/login
with:
url: ${{ env.BYTEBASE_URL }}
service-account: ${{ env.SERVICE_ACCOUNT }}
service-account-key: ${{ secrets.BYTEBASE_PASSWORD }}
- name: Get issue
id: get
uses: ./.github/actions/get-issue
with:
url: ${{ env.BYTEBASE_URL }}
token: ${{ steps.login.outputs.token }}
project-id: ${{ env.PROJECT }}
title: ${{ env.ISSUE_TITLE }}