From 5ac84cc16284a4e0227dbe8a23b6aa0ade0e47c4 Mon Sep 17 00:00:00 2001 From: Corey Goodfred Date: Tue, 30 Apr 2024 11:05:43 -0400 Subject: [PATCH] [COST-4947] prevent running migration CI check if label is present (#5075) * prevent running migration CI check if skip-migration-check label is present * Update .github/workflows/ci.yml --------- Co-authored-by: Sam Doran --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57793686cc..d1d4980b4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -198,7 +198,9 @@ jobs: pipenv install --dev --ignore-pipfile --python ${{ matrix.python-version }} - name: Check migrations - if: needs.changed-files.outputs.run_tests == 'true' + if: | + needs.changed-files.outputs.run_tests == 'true' + && !(contains(github.event.pull_request.labels.*.name, 'skip-migration-check')) run: bash .github/scripts/check_migrations.sh env: DATABASE_SERVICE_NAME: POSTGRES_SQL