From d0cc2a165844446ddb3220c251604c4837171ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Fri, 13 Sep 2024 22:19:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=F0=9F=9A=91=20Fix=20checking=20sch?= =?UTF-8?q?ema=20in=20CI=20on=20merge=20(#15514)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a variation of #15510, this time fixing the `detect-schema-change` make target. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 982f366d9d..4f2aeeb845 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,10 @@ jobs: - name: awx-collection command: /start_tests.sh test_collection_all - name: api-schema - command: /start_tests.sh detect-schema-change SCHEMA_DIFF_BASE_BRANCH=${{ github.event.pull_request.base.ref }} + command: >- + /start_tests.sh detect-schema-change SCHEMA_DIFF_BASE_BRANCH=${{ + github.event.pull_request.base.ref || github.ref_name + }} steps: - uses: actions/checkout@v4