summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>2024-09-13 22:19:35 +0200
committerGitHub <noreply@github.com>2024-09-13 22:19:35 +0200
commitd0cc2a165844446ddb3220c251604c4837171ef0 (patch)
tree7bc1a349876cf509590bf8dec5c713d99246db37 /.github
parent🧪💄 Order settings in `coveragerc` (#15515) (diff)
downloadawx-d0cc2a165844446ddb3220c251604c4837171ef0.tar.xz
awx-d0cc2a165844446ddb3220c251604c4837171ef0.zip
🧪🚑 Fix checking schema in CI on merge (#15514)
This is a variation of #15510, this time fixing the `detect-schema-change` make target.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 4 insertions, 1 deletions
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