Skip to content

Create 5001_create_t1.up.sql #58

Create 5001_create_t1.up.sql

Create 5001_create_t1.up.sql #58

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"
BYTEBASE_SERVICE_ACCOUNT: "[email protected]"
PROJECT: "example"
ISSUE_TITLE: "[${{ github.repository }}#${{ github.event.pull_request.number }}] ${{ github.event.pull_request.title }}"
name: Check Migration Status
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.BYTEBASE_SERVICE_ACCOUNT }}
service-account-key: ${{ secrets.BYTEBASE_PASSWORD }}
- name: Check Issue Status
id: check
uses: ./.github/actions/check-issue-status
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: "**/*.up.sql"
url: ${{ env.BYTEBASE_URL }}
token: ${{ steps.login.outputs.token }}
headers: '{"Accept-Encoding": "deflate, gzip"}'
project-id: ${{ env.PROJECT }}
title: ${{ env.ISSUE_TITLE }}