Skip to content

Commit

Permalink
chore: tweak flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhou committed Apr 1, 2024
1 parent f3bc6d8 commit 5679532
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/bytebase-upsert-migration.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
name: Upsert Migration

on:
pull_request_review:
types: [submitted]
# pull_request:
# branches:
# - main
# paths:
# - "**/*.up.sql"
# pull_request_review:
# types: [submitted]
pull_request:
branches:
- main
paths:
- "**/*.up.sql"

jobs:
bytebase-upsert-migration:
runs-on: ubuntu-latest
# Runs only if PR is approved and target branch is main
if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'main'
env:
BYTEBASE_URL: "https://bytebase-ci.zeabur.app"
BYTEBASE_SERVICE_ACCOUNT: "[email protected]"
Expand Down

0 comments on commit 5679532

Please sign in to comment.