feat: add user table not null approve change migration version number #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |