diff --git a/.github/workflows/test-migrations-compatibility.yml b/.github/workflows/test-migrations-compatibility.yml index 5a75cb6c9f7..5cd9a81ebdb 100644 --- a/.github/workflows/test-migrations-compatibility.yml +++ b/.github/workflows/test-migrations-compatibility.yml @@ -2,11 +2,7 @@ name: Test migrations compatibility on: pull_request: - branches: - - "3.*" - - "main" - paths: - - "**/migrations/**" + branches: ["**"] env: DATABASE_URL: "postgres://saleor:saleor@postgres:5432/saleor" @@ -14,6 +10,7 @@ env: jobs: build: + if: ${{ ((github.event.action == 'labeled') && (github.event.label.name == 'test')) || ((github.event.action != 'labeled') && contains(github.event.pull_request.labels.*.name, 'test')) }} runs-on: ubuntu-latest container: python:3.9 @@ -60,7 +57,7 @@ jobs: - name: Checkout base uses: actions/checkout@v4 with: - ref: ${{ github['base_ref'] }} + ref: ${{ github['head_ref'] }}-zero-downtime - name: Run tests run: |